vps/roles/synapse/templates/homeserver.yaml

98 lines
2 KiB
YAML
Raw Normal View History

2023-11-28 15:01:43 +01:00
# For more information on how to configure Synapse, including a complete accounting of
# each option, go to docs/usage/configuration/config_documentation.md or
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
# Server
2024-02-17 19:01:04 +01:00
server_name: "{{ domain }}"
2023-11-28 15:01:43 +01:00
pid_file: /data/homeserver.pid
listeners:
- port: 8008
tls: false
type: http
x_forwarded: true
resources:
- names: [client, federation]
compress: false
2023-11-29 15:24:57 +01:00
# Homeserver blocking
max_avatar_size: 2M
# Database
2023-11-28 15:01:43 +01:00
database:
name: psycopg2
args:
2024-02-23 12:17:32 +01:00
user: synapse
2024-02-17 19:01:04 +01:00
password: {{ synapse_secrets['postgres_password'] }}
2023-11-28 15:01:43 +01:00
dbname: synapse
host: synapse-postgres
2023-11-28 15:01:43 +01:00
cp_min: 5
cp_max: 10
2023-11-29 15:24:57 +01:00
# Logging
2024-02-17 19:01:04 +01:00
log_config: "/data/{{ domain }}.log.config"
2023-11-29 15:24:57 +01:00
# Media Store
media_store_path: /data/media_store
# Changer aussi le max_body_size dans le reverse proxy
2024-02-17 19:01:04 +01:00
max_upload_size: {{ synapse['max_upload_size'] }}
media_retention:
remote_media_lifetime: 14d
2023-11-29 14:50:53 +01:00
url_preview_enabled: true
url_preview_ip_range_blacklist:
- '127.0.0.0/8'
- '10.0.0.0/8'
- '172.16.0.0/12'
- '192.168.0.0/16'
- '100.64.0.0/10'
- '192.0.0.0/24'
- '169.254.0.0/16'
- '192.88.99.0/24'
- '198.18.0.0/15'
- '192.0.2.0/24'
- '198.51.100.0/24'
- '203.0.113.0/24'
- '224.0.0.0/4'
- '::1/128'
- 'fe80::/10'
- 'fc00::/7'
- '2001:db8::/32'
- 'ff00::/8'
- 'fec0::/10'
url_preview_accept_language:
- 'en'
- 'fr'
- '*;q=0.2'
2023-11-28 15:01:43 +01:00
# TURN
2024-02-17 19:01:04 +01:00
turn_uris: ["turns:turn.{{ domain }}?transport=udp", "turns:turn.{{ domain }}?transport=tcp"]
turn_shared_secret: "{{ synapse_secrets['turn_shared_secret'] }}"
2023-12-08 12:22:33 +01:00
turn_user_lifetime: 86400000
turn_allow_guests: true
# Registration
enable_registration: true
registration_requires_token: true
# Metrics
report_stats: true
2024-02-17 19:01:04 +01:00
# API Configuration
macaroon_secret_key: "{{ synapse_secrets['macaroon_secret_key'] }}"
form_secret: "{{ synapse_secrets['form_secret'] }}"
# Signing Keys
2024-02-17 19:01:04 +01:00
signing_key_path: "/data/{{ domain }}.signing.key"
trusted_key_servers:
- server_name: "matrix.org"
suppress_key_server_warning: true