|
|
@ -0,0 +1,121 @@ |
|
|
|
no_tls: True |
|
|
|
tls_fingerprints: [] |
|
|
|
pid_file: "/var/run/matrix-synapse.pid" |
|
|
|
soft_file_limit: 0 |
|
|
|
use_presence: true |
|
|
|
public_baseurl: {{ matrix.url }} |
|
|
|
listeners: |
|
|
|
- port: 8008 |
|
|
|
bind_addresses: |
|
|
|
- '0.0.0.0' |
|
|
|
type: http |
|
|
|
tls: false |
|
|
|
x_forwarded: true |
|
|
|
resources: |
|
|
|
- names: |
|
|
|
- client |
|
|
|
compress: true |
|
|
|
- names: [federation] |
|
|
|
compress: false |
|
|
|
admin_contact: 'mailto:{{ matrix.admin_contact }}' |
|
|
|
restrict_public_rooms_to_local_users: False |
|
|
|
filter_timeline_limit: 5000 |
|
|
|
block_non_admin_invites: False |
|
|
|
hs_disabled: False |
|
|
|
hs_disabled_message: 'Human readable reason for why the HS is blocked' |
|
|
|
hs_disabled_limit_type: 'error code(str), to help clients decode reason' |
|
|
|
limit_usage_by_mau: {{ matrix.limit_usage_by_mau }} |
|
|
|
max_mau_value: {{ matrix.max_mau_value }} |
|
|
|
mau_trial_days: {{ matrix.mau_trial_days }} |
|
|
|
enable_search: {{ matrix.enable_search }} |
|
|
|
database: |
|
|
|
name: psycopg2 |
|
|
|
args: |
|
|
|
user: {{ matrix.db_user }} |
|
|
|
password: {{ matrix.db_password }} |
|
|
|
database: {{ matrix.db_name }} |
|
|
|
host: {{ matrix.db_host }} |
|
|
|
cp_min: {{ matrix.cp_min }} |
|
|
|
cp_max: {{ matrix.cp_max }} |
|
|
|
|
|
|
|
event_cache_size: {{ matrix.event_cache_size }} |
|
|
|
log_config: "/etc/matrix-synapse/log.yaml" |
|
|
|
rc_messages_per_second: {{ matrix.rc_messages_per_second }} |
|
|
|
rc_message_burst_count: {{ matrix.rc_message_burst_count }} |
|
|
|
federation_rc_window_size: {{ matrix.federation_rc_window_size }} |
|
|
|
federation_rc_sleep_limit: {{ matrix.federation_rc_sleep_limit }} |
|
|
|
federation_rc_sleep_delay: {{ matrix.federation_rc_sleep_delay }} |
|
|
|
federation_rc_reject_limit: {{ matrix.federation_rc_reject_limit }} |
|
|
|
federation_rc_concurrent: {{ matrix.federation_rc_concurrent }} |
|
|
|
media_store_path: "/var/lib/matrix-synapse/media" |
|
|
|
uploads_path: "/var/lib/matrix-synapse/uploads" |
|
|
|
max_upload_size: {{ matrix.max_upload_size }} |
|
|
|
max_image_pixels: {{ matrix.max_image_pixels }} |
|
|
|
macaroon_secret_key: <PRIVATE STRING> |
|
|
|
dynamic_thumbnails: false |
|
|
|
thumbnail_sizes: |
|
|
|
- width: 32 |
|
|
|
height: 32 |
|
|
|
method: crop |
|
|
|
- width: 96 |
|
|
|
height: 96 |
|
|
|
method: crop |
|
|
|
- width: 320 |
|
|
|
height: 240 |
|
|
|
method: scale |
|
|
|
- width: 640 |
|
|
|
height: 480 |
|
|
|
method: scale |
|
|
|
- width: 800 |
|
|
|
height: 600 |
|
|
|
method: scale |
|
|
|
url_preview_enabled: True |
|
|
|
url_preview_ip_range_blacklist: |
|
|
|
- '10.0.0.0/8' |
|
|
|
- '192.168.1.0/24' |
|
|
|
max_spider_size: {{ matrix.max_spider_size }} |
|
|
|
recaptcha_public_key: "YOUR_PUBLIC_KEY" |
|
|
|
recaptcha_private_key: "YOUR_PRIVATE_KEY" |
|
|
|
enable_registration_captcha: False |
|
|
|
turn_uris: ["turn:{{ matrix.turn_server_name }}:3478?transport=udp", "turn:{{ matrix.turn_server_name }}:3478?transport=tcp"] |
|
|
|
turn_shared_secret: {{ coturn.static_auth_secret }} |
|
|
|
turn_user_lifetime: "1h" |
|
|
|
turn_allow_guests: True |
|
|
|
enable_registration: {{ matrix.enable_registration }} |
|
|
|
bcrypt_rounds: 12 |
|
|
|
allow_guest_access: {{ matrix.allow_guest_access }} |
|
|
|
trusted_third_party_id_servers: |
|
|
|
- matrix.org |
|
|
|
- vector.im |
|
|
|
autocreate_auto_join_rooms: true |
|
|
|
enable_metrics: False |
|
|
|
room_invite_state_types: |
|
|
|
- "m.room.join_rules" |
|
|
|
- "m.room.canonical_alias" |
|
|
|
- "m.room.avatar" |
|
|
|
- "m.room.name" |
|
|
|
#app_service_config_files: ["/etc/matrix-synapse/conf.d/matrixircbridge.yaml"] |
|
|
|
track_appservice_user_ips: False |
|
|
|
expire_access_token: False |
|
|
|
signing_key_path: "/etc/matrix-synapse/homeserver.signing.key" |
|
|
|
perspectives: |
|
|
|
servers: |
|
|
|
"matrix.org": |
|
|
|
verify_keys: |
|
|
|
"ed25519:auto": |
|
|
|
key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw" |
|
|
|
password_config: |
|
|
|
enabled: true |
|
|
|
#pepper: "" |
|
|
|
enable_group_creation: true |
|
|
|
alias_creation_rules: |
|
|
|
- user_id: "*" |
|
|
|
alias: "*" |
|
|
|
action: allow |
|
|
|
push: |
|
|
|
include_content: true |
|
|
|
user_directory: |
|
|
|
enabled: true |
|
|
|
search_all_users: true |
|
|
|
enable_room_list_search: true |
|
|
|
|