mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Apparently the http_proxy setting for synapse is only an env var
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
c521570498
commit
62713f7d0b
|
@ -211,8 +211,17 @@ EOF
|
||||||
template {
|
template {
|
||||||
data = <<EOF
|
data = <<EOF
|
||||||
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
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/
|
https_proxy=http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
||||||
|
{{ end }}
|
||||||
|
EOF
|
||||||
|
destination = "/secrets/env"
|
||||||
|
env = true
|
||||||
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
data = <<EOF
|
||||||
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
worker_name: "worker-client-{{ env "NOMAD_ALLOC_INDEX" }}"
|
worker_name: "worker-client-{{ env "NOMAD_ALLOC_INDEX" }}"
|
||||||
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
||||||
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
||||||
|
@ -359,8 +368,17 @@ EOF
|
||||||
template {
|
template {
|
||||||
data = <<EOF
|
data = <<EOF
|
||||||
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
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/
|
https_proxy=http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
||||||
|
{{ end }}
|
||||||
|
EOF
|
||||||
|
destination = "/secrets/env"
|
||||||
|
env = true
|
||||||
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
data = <<EOF
|
||||||
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
worker_name: "worker-sync-{{ env "NOMAD_ALLOC_INDEX" }}"
|
worker_name: "worker-sync-{{ env "NOMAD_ALLOC_INDEX" }}"
|
||||||
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
||||||
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
||||||
|
@ -507,8 +525,17 @@ EOF
|
||||||
template {
|
template {
|
||||||
data = <<EOF
|
data = <<EOF
|
||||||
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
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/
|
https_proxy=http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
||||||
|
{{ end }}
|
||||||
|
EOF
|
||||||
|
destination = "/secrets/env"
|
||||||
|
env = true
|
||||||
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
data = <<EOF
|
||||||
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
worker_name: "worker-federation-receiver-{{ env "NOMAD_ALLOC_INDEX" }}"
|
worker_name: "worker-federation-receiver-{{ env "NOMAD_ALLOC_INDEX" }}"
|
||||||
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
||||||
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
||||||
|
@ -655,8 +682,17 @@ EOF
|
||||||
template {
|
template {
|
||||||
data = <<EOF
|
data = <<EOF
|
||||||
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
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/
|
https_proxy=http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
||||||
|
{{ end }}
|
||||||
|
EOF
|
||||||
|
destination = "/secrets/env"
|
||||||
|
env = true
|
||||||
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
data = <<EOF
|
||||||
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
worker_name: "worker-federation-sender-{{ env "NOMAD_ALLOC_INDEX" }}"
|
worker_name: "worker-federation-sender-{{ env "NOMAD_ALLOC_INDEX" }}"
|
||||||
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
||||||
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
||||||
|
@ -889,8 +925,17 @@ EOF
|
||||||
template {
|
template {
|
||||||
data = <<EOF
|
data = <<EOF
|
||||||
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
http_proxy: http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
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/
|
https_proxy=http://synapse:{{ .Data.data.proxy_pass }}@synapse-proxy.in.redalder.org:8883/
|
||||||
|
{{ end }}
|
||||||
|
EOF
|
||||||
|
destination = "/secrets/env"
|
||||||
|
env = true
|
||||||
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
data = <<EOF
|
||||||
|
{{ with secret "kv/data/cluster/matrix/synapse" }}
|
||||||
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
registration_shared_secret: "{{ .Data.data.registration_shared_secret }}"
|
||||||
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
macaroon_secret_key: "{{ .Data.data.macaroon_secret_key }}"
|
||||||
form_secret: "{{ .Data.data.form_secret }}"
|
form_secret: "{{ .Data.data.form_secret }}"
|
||||||
|
|
Loading…
Reference in a new issue