Files
element_matrix_chat/configs/homeserver.yaml.template
2025-11-08 22:27:01 +01:00

90 lines
2.0 KiB
Plaintext

# Matrix Synapse Configuration Template
# Replace variables with actual values before use
server_name: "{{MATRIX_SERVER_NAME}}"
pid_file: /data/homeserver.pid
listeners:
- port: 8008
tls: false
type: http
x_forwarded: true
resources:
- names: [client, federation]
compress: false
- port: 8009
tls: false
type: http
x_forwarded: true
bind_addresses: ['0.0.0.0']
resources:
- names: [replication]
compress: false
database:
name: psycopg2
args:
user: "{{POSTGRES_USER}}"
password: "{{POSTGRES_PASSWORD}}"
database: "{{POSTGRES_DB}}"
host: postgres
cp_min: 5
cp_max: 10
allow_unsafe_locale: true
log_config: "/data/localhost.log.config"
media_store_path: /data/media_store
registration_shared_secret: "{{REGISTRATION_SHARED_SECRET}}"
report_stats: {{MATRIX_REPORT_STATS}}
enable_registration: {{ENABLE_REGISTRATION}}
enable_registration_without_verification: {{ENABLE_REGISTRATION_WITHOUT_VERIFICATION}}
macaroon_secret_key: "{{MACAROON_SECRET_KEY}}"
form_secret: "{{FORM_SECRET}}"
signing_key_path: "/data/localhost.signing.key"
trusted_key_servers:
- server_name: "matrix.org"
suppress_key_server_warning: true
# User directory configuration
user_directory:
enabled: true
search_all_users: true
prefer_local_users: true
# Allow public room directory
allow_public_rooms_without_auth: true
allow_public_rooms_over_federation: true
# Room directory configuration
room_list_publication_rules:
- user_id: "*"
alias: "*"
room_id: "*"
action: allow
# Application service configuration
app_service_config_files: []
# Enable user search via federation
user_directory_search_all_users: true
# Room creation settings
room_prejoin_state:
additional_event_types:
- "m.room.canonical_alias"
- "m.room.name"
- "m.room.topic"
- "m.room.avatar"
# Public room settings
autocreate_auto_join_rooms: false
auto_join_rooms: []
# Statistics and metrics
enable_metrics: true
stats:
enabled: true