Small fixes
This commit is contained in:
parent
86578a93ed
commit
6f66843d92
3 changed files with 35 additions and 67 deletions
|
@ -6,6 +6,9 @@ services:
|
|||
postgres:
|
||||
condition: service_started
|
||||
container_name: synapse
|
||||
command: generate
|
||||
environment:
|
||||
- SYNAPSE_SERVER_NAME=example.com
|
||||
image: matrixdotorg/synapse:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
|
|
32
synapse/homeserver.template
Normal file
32
synapse/homeserver.template
Normal file
|
@ -0,0 +1,32 @@
|
|||
database:
|
||||
name: psycopg2
|
||||
args:
|
||||
user: synapse
|
||||
password: # Postgres password set i docker-compose
|
||||
dbname: synapse
|
||||
host: postgres-synapse
|
||||
port: 5432
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
|
||||
|
||||
# oidc_providers:
|
||||
# - idp_id: authentik
|
||||
# idp_name: authentik
|
||||
# discover: true
|
||||
# issuer: ""
|
||||
# client_id: ""
|
||||
# client_secret: ""
|
||||
# scopes:
|
||||
# - "openid"
|
||||
# - "profile"
|
||||
# - "email"
|
||||
# user_mapping_provider:
|
||||
# config:
|
||||
# localpart_template: "{{ user.preferred_username }}"
|
||||
# display_name_template: "{{ user.preferred_username|capitalize }}"
|
||||
|
||||
turn_uris: [ "turn:turn.m00.se?transport=udp", "turn:turn.m00.se?transport=tcp" ]
|
||||
turn_shared_secret: "" # static-auth-secret set in turnserver.conf
|
||||
turn_user_lifetime: 86400000
|
||||
turn_allow_guests: true
|
|
@ -1,67 +0,0 @@
|
|||
# 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://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html
|
||||
server_name: "m00.se"
|
||||
public_baseurl: "https://matrix.m00.se/"
|
||||
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: # Postgres password set i docker-compose
|
||||
dbname: synapse
|
||||
host: postgres-synapse
|
||||
port: 5432
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
|
||||
|
||||
# oidc_providers:
|
||||
# - idp_id: authentik
|
||||
# idp_name: authentik
|
||||
# discover: true
|
||||
# issuer: ""
|
||||
# client_id: ""
|
||||
# client_secret: ""
|
||||
# scopes:
|
||||
# - "openid"
|
||||
# - "profile"
|
||||
# - "email"
|
||||
# user_mapping_provider:
|
||||
# config:
|
||||
# localpart_template: "{{ user.preferred_username }}"
|
||||
# display_name_template: "{{ user.preferred_username|capitalize }}"
|
||||
|
||||
turn_uris: [ "turn:turn.m00.se?transport=udp", "turn:turn.m00.se?transport=tcp" ]
|
||||
turn_shared_secret: "" # static-auth-secret set in turnserver.conf
|
||||
turn_user_lifetime: 86400000
|
||||
turn_allow_guests: true
|
||||
|
||||
log_config: "/data/m00.se.log.config"
|
||||
media_store_path: /data/media_store
|
||||
registration_shared_secret: "" # Set to random data (pwgen -s 64 1)
|
||||
report_stats: true
|
||||
macaroon_secret_key: ""
|
||||
form_secret: ""
|
||||
signing_key_path: "/data/m00.se.signing.key"
|
||||
trusted_key_servers:
|
||||
- server_name: "matrix.org"
|
||||
|
||||
|
||||
# vim:ft=yaml
|
Loading…
Add table
Reference in a new issue