Initial Commit

This commit is contained in:
cortex
2026-05-20 10:28:49 +01:00
parent a5b3ddd701
commit 784cca8b27
14 changed files with 1035 additions and 3 deletions
+45
View File
@@ -0,0 +1,45 @@
# Auto-generated config for {{WORKER_NAME}}
# Generated by generate-workers.sh
worker_app: synapse.app.generic_worker
instance_map:
master:
host: synapse
port: 9090
{{WORKER_NAME}}:
host: {{WORKER_NAME}}
port: {{PORT}}
worker_name: {{WORKER_NAME}}
worker_listeners:
- port: {{PORT}}
bind_addresses: ['::']
type: http
resources:
- names: [replication]
worker_replication_host: synapse
worker_replication_http_port: {{PORT}}
server_name: {{SERVER_NAME}}
database:
name: psycopg2
args:
user: {{DB_USER}}
password: {{DB_PASSWORD}}
database: {{DB_NAME}}
host: db
cp_min: 5
cp_max: 10
redis:
enabled: true
host: redis
port: 6379
log_config: "/data/workers/{{WORKER_NAME}}.log.config"
worker_daemonize: true
worker_pid_file: "/var/run/synapse/{{WORKER_NAME}}.pid"
metrics_enabled: true