Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
feat: automatically configure the trusted proxy ip address using the …
Browse files Browse the repository at this point in the history
…global ip address

following: #57
  • Loading branch information
paolomainardi authored Jul 19, 2024
1 parent 528d547 commit 040f9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mastodon:
vapid:
private_key: ${MASTODON_VAPID_PRIVATE_KEY}
public_key: ${MASTODON_VAPID_PUBLIC_KEY}
trusted_proxy_ip: ${MASTODON_TRUSTED_PROXY_IP}
streaming:
replicas: 2
web:
Expand Down
1 change: 1 addition & 0 deletions mastodon.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ locals {
MASTODON_REDIS_ENABLED : var.memorystore_redis_enabled ? "false" : "true"
MASTODON_REDIS_HOSTNAME : var.memorystore_redis_enabled ? google_redis_instance.mastodon_redis[0].host : ""
MASTODON_REDIS_SECRET_NAME : var.memorystore_redis_enabled ? kubernetes_secret.mastodon_memorystore_redis_secret[0].metadata[0].name : kubernetes_secret.mastodon_redis_secret[0].metadata[0].name
MASTODON_TRUSTED_PROXY_IP : google_compute_global_address.app_lb_ip.address
NAME : var.name
}
)
Expand Down

0 comments on commit 040f9a4

Please sign in to comment.