Skip to content

Instantly share code, notes, and snippets.

@ThomasHalwax
Created January 24, 2023 12:39
Show Gist options
  • Save ThomasHalwax/0d97cf4795e0bfe8fbc83cb14b48c3e9 to your computer and use it in GitHub Desktop.
Save ThomasHalwax/0d97cf4795e0bfe8fbc83cb14b48c3e9 to your computer and use it in GitHub Desktop.
homeserver.yaml to be used with a docker-compose file in order to test federation
# 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.right-org.lan"
pid_file: /data/homeserver.pid
listeners:
- port: 8008
tls: false
type: http
x_forwarded: true
resources:
- names: [client, federation]
compress: false
- port: 8448
tls: false
type: http
x_forwarded: true
resources:
- names: [client, federation]
compress: false
database:
name: sqlite3
args:
database: /data/homeserver.db
log_config: "/data/matrix.right-org.lan.log.config"
media_store_path: /data/media_store
registration_shared_secret: "-choose-your-own-"
report_stats: false
macaroon_secret_key: "-better-be-random-"
form_secret: "-should-be-pretty-long-"
signing_key_path: "/data/matrix.right-org.lan.signing.key"
trusted_key_servers: []
federation_verify_certificates: false
federation_domain_whitelist:
- matrix.left-org.lan
enable_registration: true
enable_registration_without_verification: true
ip_range_whitelist:
- '172.28.0.0/16'
# serve_server_wellknown: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment