Skip to content

Commit

Permalink
Update deployment to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Jan 14, 2025
1 parent 900a810 commit 8f4ec3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/ooni-backend/templates/api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ TOR_TARGETS_CONFFILE = "/etc/ooni/tor_targets.json"
JWT_ENCRYPTION_KEY = "{{ jwt_encryption_key }}"
ACCOUNT_ID_HASHING_KEY = "{{ account_id_hashing_key }}"

SESSION_EXPIRY_DAYS = 180
LOGIN_EXPIRY_DAYS = 365
SESSION_EXPIRY_DAYS = 2
LOGIN_EXPIRY_DAYS = 7

# Registration email delivery
MAIL_SERVER = "mail.riseup.net"
Expand Down
8 changes: 4 additions & 4 deletions tf/environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ module "ooniapi_ooniprobe" {

task_secrets = {
POSTGRESQL_URL = aws_secretsmanager_secret_version.oonipg_url.arn
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret.arn
PROMETHEUS_METRICS_PASSWORD = aws_secretsmanager_secret_version.prometheus_metrics_password.arn
}

Expand Down Expand Up @@ -473,7 +473,7 @@ module "ooniapi_oonirun" {

task_secrets = {
POSTGRESQL_URL = aws_secretsmanager_secret_version.oonipg_url.arn
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret.arn
PROMETHEUS_METRICS_PASSWORD = aws_secretsmanager_secret_version.prometheus_metrics_password.arn
}

Expand Down Expand Up @@ -521,7 +521,7 @@ module "ooniapi_oonifindings" {

task_secrets = {
POSTGRESQL_URL = aws_secretsmanager_secret_version.oonipg_url.arn
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret.arn
PROMETHEUS_METRICS_PASSWORD = aws_secretsmanager_secret_version.prometheus_metrics_password.arn
}

Expand Down Expand Up @@ -572,7 +572,7 @@ module "ooniapi_ooniauth" {

task_secrets = {
POSTGRESQL_URL = aws_secretsmanager_secret_version.oonipg_url.arn
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret
JWT_ENCRYPTION_KEY = data.aws_ssm_parameter.jwt_secret.arn
PROMETHEUS_METRICS_PASSWORD = aws_secretsmanager_secret_version.prometheus_metrics_password.arn

AWS_SECRET_ACCESS_KEY = module.ooniapi_user.aws_secret_access_key_arn
Expand Down

0 comments on commit 8f4ec3e

Please sign in to comment.