feat: rename cm synapse-config -> synapse
This commit is contained in:
parent
e440d92b2c
commit
8e94b3d942
6 changed files with 4 additions and 6 deletions
91
config/homeserver.yaml
Normal file
91
config/homeserver.yaml
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
server_name: "$SERVER_NAME"
|
||||
public_baseurl: "https://$BASE_URL"
|
||||
pid_file: /homeserver.pid
|
||||
web_client: false
|
||||
soft_file_limit: 0
|
||||
log_config: "/config/log.config"
|
||||
|
||||
listeners:
|
||||
- port: 8008
|
||||
tls: false
|
||||
type: http
|
||||
x_forwarded: true
|
||||
bind_addresses: ['::']
|
||||
resources:
|
||||
- names: [client, federation]
|
||||
compress: true
|
||||
|
||||
database:
|
||||
name: "psycopg2"
|
||||
args:
|
||||
host: "$POSTGRES_HOST"
|
||||
port: "$POSTGRES_PORT"
|
||||
database: "$POSTGRES_DB"
|
||||
user: "$POSTGRES_USER"
|
||||
password: "$POSTGRES_PASSWORD"
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
|
||||
event_cache_size: "10K"
|
||||
|
||||
rc_messages_per_second: 0.2
|
||||
rc_message_burst_count: 10.0
|
||||
federation_rc_window_size: 1000
|
||||
federation_rc_sleep_limit: 10
|
||||
federation_rc_sleep_delay: 500
|
||||
federation_rc_reject_limit: 50
|
||||
federation_rc_concurrent: 3
|
||||
|
||||
media_store_path: "/data/media"
|
||||
max_upload_size: "50M"
|
||||
max_image_pixels: "32M"
|
||||
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: false
|
||||
max_spider_size: "10M"
|
||||
|
||||
enable_registration_captcha: false
|
||||
|
||||
turn_uris: [ "turn:$TURN_URL?transport=tcp", "turn:$TURN_URL?transport=udp" ]
|
||||
turn_shared_secret: "$TURN_SHARED_SECRET"
|
||||
turn_user_lifetime: "1h"
|
||||
turn_allow_guests: true
|
||||
|
||||
enable_registration: false
|
||||
registration_shared_secret: "$REGISTRATION_SECRET"
|
||||
|
||||
enable_metrics: true
|
||||
report_stats: true
|
||||
|
||||
macaroon_secret_key: "$API_SECRET"
|
||||
expire_access_token: false
|
||||
|
||||
signing_key_path: "/keys/signing.key"
|
||||
key_refresh_interval: "1d"
|
||||
|
||||
trusted_key_servers:
|
||||
- server_name: matrix.org
|
||||
verify_keys:
|
||||
"ed25519:auto": "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
|
||||
|
||||
password_config:
|
||||
enabled: true
|
||||
|
||||
encryption_enabled_by_default_for_room_type: "all"
|
||||
22
config/log.config
Normal file
22
config/log.config
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# vim: ft=yaml
|
||||
|
||||
version: 1
|
||||
|
||||
formatters:
|
||||
precise:
|
||||
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
|
||||
|
||||
handlers:
|
||||
console:
|
||||
class: logging.StreamHandler
|
||||
formatter: precise
|
||||
|
||||
loggers:
|
||||
synapse.storage.SQL:
|
||||
level: INFO
|
||||
|
||||
root:
|
||||
level: INFO
|
||||
handlers: [console]
|
||||
|
||||
disable_existing_loggers: false
|
||||
Reference in a new issue