diff --git a/synapse/homeserver.yml b/synapse/homeserver.yml new file mode 100644 index 0000000..b9500e8 --- /dev/null +++ b/synapse/homeserver.yml @@ -0,0 +1,188 @@ +# vim:ft=yaml + +## TLS ## + + + +#tls_certificate_path: "/data/chat.rosa-armee.at.tls.crt" +#tls_private_key_path: "/data/chat.rosa-armee.at.tls.key" + + + +## Server ## + +server_name: "chat.rosa-armee.at" +public_baseurl: "https://chat.rosa-armee.at" +pid_file: /homeserver.pid +web_client: True +soft_file_limit: 0 +log_config: "/data/log.config" + +## Ports ## + +listeners: + + # Allow configuring in case we want to reverse proxy 8008 + # using another process in the same container + + - port: 8008 + tls: false + bind_addresses: ['::'] + type: http + x_forwarded: true + + resources: + - names: [client] + compress: true + - names: [federation] + compress: false + +## Database ## + + +database: + name: "sqlite3" + args: + database: "/data/homeserver.db" + + +## Performance ## + +event_cache_size: "10K" + +## Ratelimiting ## + +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 + +## Files ## + +media_store_path: "/data/media" +max_upload_size: "50M" +max_image_pixels: "32M" +dynamic_thumbnails: false + +# List of thumbnail to precalculate when an image is uploaded. +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 +max_spider_size: "10M" + +## Captcha ## +# Einfach so lassen wenn du kein Captcha willst + + +recaptcha_public_key: "YOUR_PUBLIC_KEY" +recaptcha_private_key: "YOUR_PRIVATE_KEY" +enable_registration_captcha: False +recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify" + + +## Turn ## + + +turn_uris: ["turn:chat.rosa-armee.at:3478?transport=udp","turn:chat.rosa-armee.at:3478?transport=tcp"] +turn_shared_secret: "" +turn_user_lifetime: "1h" +turn_allow_guests: False + + +## Registration ## + +enable_registration: True +registration_shared_secret: "" +bcrypt_rounds: 12 +allow_guest_access: False +enable_group_creation: true +#registration_requires_token: true +#rum +registrations_require_3pid: + - email + + + +## Metrics ### + + +enable_metrics: False +report_stats: False + + +## API Configuration ## + + + +macaroon_secret_key: "< Wos glaubst woa des? Genau a Schtring>" + +## Signing Keys ## + +signing_key_path: "/data/chat.rosa-armee.at.signing.key" +old_signing_keys: {} +key_refresh_interval: "1d" # 1 Day. + +# The trusted servers to download signing keys from. +trusted_key_servers: + - server_name: matrix.org + verify_keys: + "ed25519:auto": "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw" + +password_config: + enabled: true + + +# Mail by rum +email: + smtp_host: mail.mymailserver + smtp_port: 587 + smtp_user: "admin@oida.at" + smtp_pass: "Des is my mail passwort du oasch - schau ned" + force_tls: false + require_transport_security: true + enable_tls: true + tlsname: mail.exa.at + notif_from: "Your Friendly %(app)s homeserver " + app_name: Rosa-Armee Matrix server + enable_notifs: true + notif_for_new_users: true + client_base_url: "https://chat.rosa-armee.at/riot" + validation_token_lifetime: 15m + invite_client_location: https://element.rosa-armee.at + + subjects: + message_from_person_in_room: "[%(app)s] You have a message on %(app)s from %(person)s in the %(room)s room..." + message_from_person: "[%(app)s] You have a message on %(app)s from %(person)s..." + messages_from_person: "[%(app)s] You have messages on %(app)s from %(person)s..." + messages_in_room: "[%(app)s] You have messages on %(app)s in the %(room)s room..." + messages_in_room_and_others: "[%(app)s] You have messages on %(app)s in the %(room)s room and others..." + messages_from_person_and_others: "[%(app)s] You have messages on %(app)s from %(person)s and others..." + invite_from_person_to_room: "[%(app)s] %(person)s has invited you to join the %(room)s room on %(app)s..." + invite_from_person: "[%(app)s] %(person)s has invited you to chat on %(app)s..." + password_reset: "[%(server_name)s] Password reset" + email_validation: "[%(server_name)s] Validate your email" + + +# Mas by rum +experimental_features: + msc3026_enabled: true # For account data search. + msc2409_to_device_messages_enabled: true # For to-device message improvements. + msc3202_device_masquerading: true # For device masquerading.