diff --git a/api/Dockerfile b/api/Dockerfile index ebd4be19..b7f67f50 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -6,6 +6,7 @@ ARG DB_NAME ARG DB_USERNAME ARG DB_PASSWORD ARG JWT_SECRET +ARG JWT_EXPIRES_IN ENV DB_HOST $DB_HOST ENV DB_PORT $DB_PORT @@ -13,6 +14,7 @@ ENV DB_NAME $DB_NAME ENV DB_USERNAME $DB_USERNAME ENV DB_PASSWORD $DB_PASSWORD ENV JWT_SECRET $JWT_SECRET +ENV JWT_EXPIRES_IN $JWT_EXPIRES_IN WORKDIR /app diff --git a/infrastructure/main.tf b/infrastructure/main.tf index 1a5eefb4..dc766353 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -124,6 +124,9 @@ module "dev" { repo_name = var.project_name github_owner = var.github_owner github_token = var.github_token + github_additional_environment_variables = { + JWT_EXPIRES_IN = "1d" + } } module "github" {