# Configuration file for Synapse.
#
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
server_name: "matrix.server-nb.de"
pid_file: /data/homeserver.pid
listeners:
  - port: 8008
    tls: false
    type: http
    x_forwarded: true
    resources:
      - names: [client, federation]
        compress: false
database:
  name: "psycopg2"
  args:
    user: "synapse"
    password: "jgzqnGCq3KY28C"
    database: "synapse"
    host: "postgres"
    port: "5432"
    cp_min: 5
    cp_max: 10
#
log_config: "/data/matrix.server-nb.de.log.config"
media_store_path: /data/media_store
registration_shared_secret: "Su.rA7J76@M1:IQLprWD1FXhjm~R0OgLQxThn6_K@Y*WE&V=eq"
registrations_require_3pid:
  - email
disable_msisdn_registration: true
report_stats: false
macaroon_secret_key: "=1fWcdA*SW#keHXGg*JDY7RMDXe8g::lw@E8fypf3LgD87,ge7"
form_secret: "jo,.o;cmSAdWsIK-n1@l^h,L.uj4aiMJ:kW@;FVms,zoxZla.5"
signing_key_path: "/data/matrix.server-nb.de.signing.key"
trusted_key_servers:
  - server_name: "matrix.org"
enable_registration: true
registration_requires_token: true
suppress_key_server_warning: true
#
serve_server_wellknown: true
#
matrix_mautrix_whatsapp_enabled: true
app_service_config_files:
- /data/mautrix-whatsapp/registration.yaml
#
#auto_join_rooms:
#  - "#example:example.com"
#autocreate_auto_join_rooms: false
#autocreate_auto_join_rooms_federated: false
#
enable_3pid_changes: true
user_directory.search_all_users: true
matrix_synapse_allow_public_rooms_over_federation: true
#allow_guest_access: true

#
# vim:ft=yaml
email:
  smtp_host: mail.host-nb.de
  smtp_port: 587
  smtp_user: "matrix@mail-nb.de"
  smtp_pass: "STraMO80"
  require_transport_security: true
  notif_from: "Your Friendly %(app)s homeserver <matrix@mail-nb.de>"
  app_name: EDV-Wolff Matrix Server
  enable_notifs: true
  invite_client_location: "https://matrix-client.server-nb.de"
  client_base_url: "https://matrix.server-nb.de"



## TURN ##
turn_uris: ["turn:turn.server-nb.de:3478?transport=udp", "turn:turn.server-nb.de:3478?transport=tcp"]
turn_shared_secret: "WXe9ew8vNsYhvprJgMZNfZurVM2W31hwtBiTevIDEMJ3TVSiHvueEIC"
turn_user_lifetime: "1h"
turn_allow_guests: True