parent
650e0cbc28
commit
10e459f183
|
@ -6,3 +6,5 @@ LETS_ENCRYPT_ENV=production
|
||||||
SECRET_DB_PASSWORD_VERSION=v1
|
SECRET_DB_PASSWORD_VERSION=v1
|
||||||
|
|
||||||
SYNAPSE_ADMIN_EMAIL=admin@example.com
|
SYNAPSE_ADMIN_EMAIL=admin@example.com
|
||||||
|
|
||||||
|
DISABLE_FEDERATION=0
|
||||||
|
|
|
@ -8,6 +8,7 @@ services:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- internal
|
||||||
environment:
|
environment:
|
||||||
|
- DISABLE_FEDERATION
|
||||||
- DOMAIN
|
- DOMAIN
|
||||||
- STACK_NAME
|
- STACK_NAME
|
||||||
configs:
|
configs:
|
||||||
|
@ -31,6 +32,7 @@ services:
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
environment:
|
environment:
|
||||||
|
- DISABLE_FEDERATION
|
||||||
- LETSENCRYPT_HOST=${DOMAIN}
|
- LETSENCRYPT_HOST=${DOMAIN}
|
||||||
- SYNAPSE_ADMIN_EMAIL
|
- SYNAPSE_ADMIN_EMAIL
|
||||||
- SYNAPSE_REPORT_STATS=no
|
- SYNAPSE_REPORT_STATS=no
|
||||||
|
|
|
@ -310,9 +310,15 @@ listeners:
|
||||||
type: http
|
type: http
|
||||||
x_forwarded: true
|
x_forwarded: true
|
||||||
|
|
||||||
|
{{ if eq (env "DISABLE_FEDERATION") "1" }}
|
||||||
|
resources:
|
||||||
|
- names: [client]
|
||||||
|
compress: false
|
||||||
|
{{ else }}
|
||||||
resources:
|
resources:
|
||||||
- names: [client, federation]
|
- names: [client, federation]
|
||||||
compress: false
|
compress: false
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
# example additional_resources:
|
# example additional_resources:
|
||||||
#
|
#
|
||||||
|
@ -649,6 +655,9 @@ retention:
|
||||||
# - lon.example.com
|
# - lon.example.com
|
||||||
# - nyc.example.com
|
# - nyc.example.com
|
||||||
# - syd.example.com
|
# - syd.example.com
|
||||||
|
{{ if eq (env "DISABLE_FEDERATION") "1" }}
|
||||||
|
federation_domain_whitelist: []
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
# Report prometheus metrics on the age of PDUs being sent to and received from
|
# Report prometheus metrics on the age of PDUs being sent to and received from
|
||||||
# the following domains. This can be used to give an idea of "delay" on inbound
|
# the following domains. This can be used to give an idea of "delay" on inbound
|
||||||
|
|
|
@ -22,5 +22,12 @@ http {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{ if eq (env "DISABLE_FEDERATION") "1" }}
|
||||||
|
location /.well-known/matrix/ {
|
||||||
|
deny all
|
||||||
|
}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue