Initial Commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user