Skip to content

Commit

Permalink
set jwt expires in var via TF
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Sep 9, 2024
1 parent a4f4fbe commit 22d467a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ 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
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
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 22d467a

Please sign in to comment.