ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

homeserver.yaml.j2 (1776B)


      1 pid_file: "/var/run/matrix-synapse.pid"
      2 
      3 allow_public_rooms_without_auth: false
      4 
      5 allow_public_rooms_over_federation: false
      6 
      7 federation_ip_range_blacklist:
      8   - '127.0.0.0/8'
      9   - '10.0.0.0/8'
     10   - '172.16.0.0/12'
     11   - '192.168.0.0/16'
     12   - '100.64.0.0/10'
     13   - '169.254.0.0/16'
     14   - '::1/128'
     15   - 'fe80::/64'
     16   - 'fc00::/7'
     17 
     18 listeners:
     19   - port: {{ synapse__port }}
     20     tls: false
     21     type: http
     22     x_forwarded: true
     23     bind_addresses: [{{"'" + (synapse__bind_addresses)|join("', ") + "'"}}]
     24     resources:
     25       - names: [client, federation]
     26         compress: true
     27 
     28   - port: {{ synapse__metrics_port }}
     29     type: metrics
     30     bind_addresses: [{{"'" + (synapse__metrics_bind_addresses)|join("', '") + "'"}}]
     31 
     32 user_ips_max_age: "{{ synapse__user_ips_max_age }}"
     33 
     34 database:
     35   name: "psycopg2"
     36   args:
     37     user: "{{ synapse__database_user }}"
     38     database: "{{ synapse__database }}"
     39     password: "{{ synapse__database_password }}"
     40     host: "{{ synapse__database_host }}"
     41     cp_min: 5
     42     cp_max: 10
     43 
     44 log_config: "/etc/matrix-synapse/log.yaml"
     45 
     46 media_store_path: "/var/lib/matrix-synapse/media"
     47 
     48 uploads_path: "/var/lib/matrix-synapse/uploads"
     49 
     50 max_upload_size: "{{ synapse__max_upload_size }}"
     51 
     52 dynamic_thumbnails: false
     53 
     54 enable_registration: {{ synapse__enable_registration }}
     55 
     56 enable_3pid_lookup: {{ synapse__enable_3pid_lookup }}
     57 
     58 allow_guest_access: false
     59 
     60 enable_metrics: true
     61 
     62 signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
     63 
     64 trusted_key_servers:
     65   - server_name: "matrix.org"
     66 
     67 password_config:
     68    enabled: true
     69 
     70 use_presence: {{ synapse__enable_presence }}
     71 
     72 allow_device_name_lookup_over_federation: {{ synapse__enable_device_name_over_federation }}
     73 
     74 public_baseurl: "{{ synapse__public_base_url }}"
     75 
     76 caches:
     77   expiry_time: "{{ synapse__caches_expiry_time }}"