synapse/config/homeserver.yaml

91 lines
1.8 KiB
YAML
Raw Normal View History

2024-05-01 14:56:58 +00:00
server_name: "$SERVER_NAME"
public_baseurl: "https://$BASE_URL"
2024-05-01 09:29:32 +00:00
pid_file: /homeserver.pid
web_client: False
2024-05-01 09:29:32 +00:00
soft_file_limit: 0
log_config: "/config/log.config"
listeners:
- port: 8008
tls: False
2024-05-02 15:31:54 +00:00
bind_addresses: ['::']
type: http
x_forwarded: False
2024-05-01 09:29:32 +00:00
resources:
2024-05-02 15:31:54 +00:00
- names: [client, federation]
2024-05-01 09:29:32 +00:00
compress: true
database:
name: "psycopg2"
args:
host: "$POSTGRES_HOST"
port: "$POSTGRES_PORT"
database: "$POSTGRES_DB"
user: "$POSTGRES_USER"
password: "$POSTGRES_PASSWORD"
cp_min: 5
cp_max: 10
event_cache_size: "10K"
rc_messages_per_second: 0.2
rc_message_burst_count: 10.0
federation_rc_window_size: 1000
federation_rc_sleep_limit: 10
federation_rc_sleep_delay: 500
federation_rc_reject_limit: 50
federation_rc_concurrent: 3
media_store_path: "/data/media"
max_upload_size: "50M"
max_image_pixels: "32M"
dynamic_thumbnails: False
2024-05-01 09:29:32 +00:00
thumbnail_sizes:
- width: 32
height: 32
method: crop
- width: 96
height: 96
method: crop
- width: 320
height: 240
method: scale
- width: 640
height: 480
method: scale
- width: 800
height: 600
method: scale
url_preview_enabled: False
2024-05-01 09:29:32 +00:00
max_spider_size: "10M"
enable_registration_captcha: False
2024-05-01 09:29:32 +00:00
turn_uris: [ "turn:$TURN_URL?transport=tcp", "turn:$TURN_URL?transport=udp" ]
turn_shared_secret: "$TURN_SHARED_SECRET"
turn_user_lifetime: "1h"
turn_allow_guests: True
2024-05-01 09:29:32 +00:00
enable_registration: False
2024-05-01 09:29:32 +00:00
registration_shared_secret: "$REGISTRATION_SECRET"
enable_metrics: True
report_stats: True
2024-05-01 09:29:32 +00:00
macaroon_secret_key: "$API_SECRET"
signing_key_path: "/keys/signing.key"
key_refresh_interval: "1d"
trusted_key_servers:
- server_name: matrix.org
verify_keys:
"ed25519:auto": "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
password_config:
enabled: True
2024-05-01 09:29:32 +00:00
encryption_enabled_by_default_for_room_type: "all"