99 lines
2.1 KiB
Smarty
99 lines
2.1 KiB
Smarty
---
|
|
|
|
server_name: [[ .matrix.server_name ]]
|
|
public_baseurl: [[ .matrix.public_url ]]
|
|
serve_server_wellknown: true
|
|
report_stats: false
|
|
|
|
web_client: false
|
|
|
|
listeners:
|
|
- path: /alloc/tmp/synapse.sock
|
|
type: http
|
|
resources:
|
|
- names:
|
|
- client
|
|
- federation
|
|
compress: false
|
|
|
|
database:
|
|
name: psycopg2
|
|
args:
|
|
database: '[[ .matrix.synapse.db.name ]]'
|
|
host: '[[ .matrix.synapse.db.host ]]'
|
|
port: '[[ .matrix.synapse.db.port ]]'
|
|
user: '[[ .matrix.synapse.db.user ]]'
|
|
password: '[[ .matrix.synapse.db.password ]]'
|
|
|
|
trusted_key_servers:
|
|
- server_name: "matrix.org"
|
|
suppress_key_server_warning: True
|
|
|
|
email:
|
|
enable_notifs: true
|
|
smtp_host: 127.0.0.1
|
|
smtp_port: 25
|
|
require_transport_security: false
|
|
notif_from: "%(app)s <no-reply@[[ .consul.domain ]]>"
|
|
notif_for_new_users: true
|
|
client_base_url: [[ .matrix.public_url ]]
|
|
|
|
delete_stale_devices_after: 180d
|
|
max_avatar_size: 4M
|
|
allowed_avatar_mimetypes:
|
|
- image/png
|
|
- image/jpeg
|
|
- image/gif
|
|
forgotten_room_retention_period: 15d
|
|
request_token_inhibit_3pid_errors: true
|
|
|
|
media_store_path: /data/media_store
|
|
media_retention:
|
|
local_media_lifetime: 730d
|
|
remote_media_lifetime: 14d
|
|
|
|
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'
|
|
url_preview_url_blacklist:
|
|
- username: '*'
|
|
- netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
|
|
|
|
default_identity_server: https://matrix.org
|
|
|
|
macaroon_secret_key: '[[ .matrix.synapse.macaroon_secret_key ]]'
|
|
form_secret: '[[ .matrix.synapse.form_secret ]]'
|
|
|
|
sso:
|
|
client_whitelist:
|
|
- [[ .matrix.public_url ]]
|
|
update_profile_information: true
|
|
|
|
password_config:
|
|
enabled: false
|
|
|
|
push:
|
|
include_content: event_id_only
|
|
|
|
server_notices:
|
|
system_mxid_localpart: server
|
|
system_mxid_display_name: "Notification bot"
|
|
|
|
alias_creation_rules:
|
|
- user_id: '*'
|
|
alias: '*'
|
|
action: allow
|
|
|