Make synapse use the altra proxy

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-07-27 21:04:59 +02:00
parent 3dd66e0a9b
commit c76c746dce
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -211,6 +211,8 @@ EOF
template {
data = <<EOF
{{ with secret "kv/data/cluster/matrix/synapse" }}
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
https_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
worker_name: "worker-client-{{ env "NOMAD_ALLOC_INDEX" }}"
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
@ -357,6 +359,8 @@ EOF
template {
data = <<EOF
{{ with secret "kv/data/cluster/matrix/synapse" }}
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
https_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
worker_name: "worker-sync-{{ env "NOMAD_ALLOC_INDEX" }}"
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
@ -503,6 +507,8 @@ EOF
template {
data = <<EOF
{{ with secret "kv/data/cluster/matrix/synapse" }}
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
https_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
worker_name: "worker-federation-receiver-{{ env "NOMAD_ALLOC_INDEX" }}"
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
@ -649,6 +655,8 @@ EOF
template {
data = <<EOF
{{ with secret "kv/data/cluster/matrix/synapse" }}
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
https_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
worker_name: "worker-federation-sender-{{ env "NOMAD_ALLOC_INDEX" }}"
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
@ -881,6 +889,8 @@ EOF
template {
data = <<EOF
{{ with secret "kv/data/cluster/matrix/synapse" }}
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
https_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
form_secret: "{{ .Data.data.form_secret }}"