# Configuration file for Synapse. # # This is a YAML file: see [1] for a quick introduction. Note in particular # that *indentation is important*: all the elements of a list or dictionary # should have the same indentation. # # [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html # # 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_name: "matrix.domain.com" pid_file: /data/homeserver.pid federation_rc_reject_limit: 128 listeners: - port: 8008 tls: false type: http x_forwarded: true resources: - names: [client, federation] compress: false #database: # name: sqlite3 # args: # database: /data/homeserver.db database: name: psycopg2 args: user: [removed] password: [removed] database: synapse host: [removed] cp_min: 5 cp_max: 10 log_config: "/data/matrix.domain.com.log.config" media_store_path: /data/media_store registration_shared_secret: "[removed]" report_stats: true macaroon_secret_key: "[removed]" form_secret: "[removed]" signing_key_path: "/data/matrix.domain.com.signing.key" trusted_key_servers: - server_name: "matrix.org" enable_registration: true registrations_require_3pid: - email admin_contact: 'mailto:admin@domain.com' email: smtp_host: [smtp server address] smtp_port: [smtp port] smtp_user: [username] smtp_pass: [password] force_tls: true require_transport_security: true enable_tls: true notif_from: "Matrix " app_name: "Matrix" enable_notifs: true notif_for_new_users: false validation_token_lifetime: 15m invite_client_location: https://element.domain.com subjects: message_from_person_in_room: "[%(app)s] Vous avez un message sur %(app)s de %(person)s dans le canal %(room)s..." message_from_person: "[%(app)s] Vous avez un message sur %(app)s de %(person)s..." messages_from_person: "[%(app)s] Vous avez des messages sur %(app)s de %(person)s..." messages_in_room: "[%(app)s] Vous avez des messages sur %(app)s dans le canal %(room)s..." messages_in_room_and_others: "[%(app)s] Vous avez des messages sur %(app)s dans le canal %(room)s et d'autres..." messages_from_person_and_others: "[%(app)s] Vous avez des messages sur %(app)s de %(person)s et d'autres..." invite_from_person_to_room: "[%(app)s] %(person)s vous invite à rejoindre le canal %(room)s sur %(app)s..." invite_from_person: "[%(app)s] %(person)s vous a invité à chatter sur %(app)s..." password_reset: "[%(server_name)s] Réinitialisation du mot de passe" email_validation: "[%(server_name)s] Validez votre email" redis: enabled: true host: [ip of redis server] room_list_publication_rules: - user_id: "*" alias: "*" room_id: "*" action: allow turn_uris: - "turns:turn.domain.com?transport=udp" - "turns:turn.domain.com?transport=tcp" - "turn:turn.domain.com?transport=udp" - "turn:turn.domain.com?transport=tcp" turn_shared_secret: "[a secret here !]" turn_user_lifetime: "1h" turn_username: [username] turn_password: [password] app_service_config_files: - /data/mautrix-telegram-registration.yaml #only if you keep telegram bridge - /data/mautrix-whatsapp-registration.yaml #only if you keep whatsapp bridge - /data/mautrix-discord-registration.yaml #only if you keep discord bridge # vim:ft=yaml