This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/roles/synapse/vars/main.yml

126 lines
3.1 KiB
YAML
Raw Normal View History

2023-12-13 01:43:15 +00:00
---
2023-12-14 01:20:13 +00:00
synapse_svc:
2023-12-11 16:17:15 +00:00
name: synapse
2023-12-13 01:43:15 +00:00
domain: matrix.msrg.cc
2023-12-11 16:17:15 +00:00
docker_host: synapse-admin
port: 80
caddy_extra: |
handle /_matrix/* {
reverse_proxy synapse:8008
}
handle /_synapse/* {
reverse_proxy synapse:8008
}
extra_svcs:
2023-12-13 01:43:15 +00:00
- domain: msrg.cc:8008
2023-12-11 16:17:15 +00:00
additional_domains:
- matrix.msrg.cc:8448
- matrix.msrg.cc:8008
- msrg.cc:8448
docker_host: synapse
port: 8008
db:
host: "{{ postgres.host }}"
database: synapse
user: "{{ vault_synapse.db.user }}"
pass: "{{ vault_synapse.db.pass }}"
config_path: config
2023-12-14 01:20:13 +00:00
synapse_env:
2023-12-11 16:17:15 +00:00
SYNAPSE_CONFIG_PATH: "{{ ('/', svc.config_path) | path_join }}"
REACT_APP_SERVER: https://matrix.msrg.cc
2023-12-14 01:20:13 +00:00
synapse_yml:
2023-12-13 01:43:15 +00:00
server_name: msrg.cc
2023-12-11 16:17:15 +00:00
pid_file: "{{ (svc.config_path, 'homeserver.pid') | path_join }}"
public_baseurl: https://matrix.msrg.cc/
allow_public_rooms_without_auth: true
allow_public_rooms_over_federation: true
listeners:
- port: 8008
tls: false
type: http
x_forwarded: true
resources:
- names:
2023-12-13 01:43:15 +00:00
- client
- federation
- metrics
2023-12-11 16:17:15 +00:00
compress: false
2023-12-13 01:43:15 +00:00
admin_contact: mailto:{{ admin_email }}
2023-12-11 16:17:15 +00:00
acme:
2023-12-13 01:43:15 +00:00
enabled: false
2023-12-11 16:17:15 +00:00
database:
2023-12-13 01:43:15 +00:00
name: psycopg2
args:
user: "{{ svc.db.user }}"
password: "{{ svc.db.pass }}"
database: "{{ svc.db.database }}"
host: "{{ svc.db.host }}"
cp_min: 5
cp_max: 10
2023-12-11 16:17:15 +00:00
log_config: "{{ (svc.config_path, 'msrg.cc.log.config') | path_join }}"
2023-12-13 01:43:15 +00:00
media_store_path: /media_store
2023-12-11 16:17:15 +00:00
max_upload_size: 500M
enable_registration: false
enable_metrics: true
report_stats: true
macaroon_secret_key: "{{ vault_synapse.macaroon_secret_key }}"
form_secret: "{{ vault_synapse.form_secret }}"
signing_key_path: "{{ (svc.config_path, 'msrg.cc.signing.key') | path_join }}"
trusted_key_servers:
2023-12-13 01:43:15 +00:00
- server_name: matrix.org
2023-12-11 16:17:15 +00:00
suppress_key_server_warning: true
oidc_providers:
2023-12-13 01:43:15 +00:00
- idp_id: auth_serguzim_me
idp_name: auth.serguzim.me
issuer: https://auth.serguzim.me/application/o/matrix_serguzim_me/
2023-12-11 16:17:15 +00:00
client_id: "{{ vault_synapse.oidc_client.id }}"
client_secret: "{{ vault_synapse.oidc_client.secret }}"
scopes:
2023-12-13 01:43:15 +00:00
- openid
- profile
- email
2023-12-11 16:17:15 +00:00
user_mapping_provider:
config:
localpart_template: "{{ '{{ user.preferred_username }}' }}"
display_name_template: "{{ '{{ user.name }}' }}"
email:
smtp_host: mail.serguzim.me
smtp_port: 587
2023-12-13 01:43:15 +00:00
smtp_user: matrix@serguzim.me
2023-12-11 16:17:15 +00:00
smtp_pass: "{{ vault_synapse.mail.pass }}"
require_transport_security: true
2023-12-13 01:43:15 +00:00
notif_from: Matrix <matrix@serguzim.me>
2023-12-11 16:17:15 +00:00
2023-12-14 01:20:13 +00:00
synapse_compose:
2023-12-11 16:17:15 +00:00
watchtower: true
2023-12-14 19:30:34 +00:00
image: ghcr.io/element-hq/synapse:latest
2023-12-11 16:17:15 +00:00
volumes:
- ./config:/config
- media_store:/media_store
file:
services:
synapse-admin:
2023-12-13 01:43:15 +00:00
image: awesometechnologies/synapse-admin
restart: always
labels:
com.centurylinklabs.watchtower.enable: true
env_file:
- service.env
networks:
apps:
aliases:
- synapse-admin
2023-12-11 16:17:15 +00:00
volumes:
media_store: