pid_file: "/var/run/matrix-synapse.pid"
listeners:
  - port: 8008
    tls: false
    type: http
    x_forwarded: true
    bind_addresses: ['127.0.0.1']
    resources:
      - names: [client]
        compress: false
database:
  name: psycopg2
  txn_limit: 10000
  args:
    user: matrix
    password: matrix
    database: matrix
    host: localhost
    port: 5432
    cp_min: 5
    cp_max: 10
log_config: "/etc/matrix-synapse/log.yaml"
media_store_path: /mnt/storage/media
signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
trusted_key_servers:
  - server_name: "chat.aperture.keenetic.pro"
suppress_key_server_warning: true
max_upload_size: 1024M
enable_registration: true
enable_registration_without_verification: true
matrix_synapse_federation_enabled: false
matrix_synapse_federation_port_enabled: false
registration_shared_secret: "akjdkasdhajeqoepo23peopkopek230@$#)($()#@$&*(@#asdasdasd"
search_all_users: true
prefer_local_users: true
#turn_uris: ["turn:chat.aperture.keenetic.pro?transport=udp","turn:chat.aperture.keenetic.pro?transport=tcp"]
turn_shared_secret: "secret"
turn_user_lifetime: 86400000
admin_users:
  - "@admin:chat.aperture.keenetic.link"


modules:
 - module: "ldap_auth_provider.LdapAuthProviderModule"
   config:
     enabled: true
     mode: "search"
     uri: "ldap://dc0.aperture.lan:389"
     base: "DC=aperture,DC=lan"
     # Must be true for this feature to work
     active_directory: true
     # Optional. Users from this domain may log in without specifying the domain part
     default_domain: aperture.lan
     attributes:
        uid: "userPrincipalName"
        mail: "mail"
        name: "givenName"
     bind_dn: "CN=matrix,OU=service,DC=aperture,DC=lan"
     bind_password: "1@#Gfhjkm!@#"
