shlink/config/roadrunner/.rr.yml

37 lines
732 B
YAML
Raw Normal View History

2022-08-21 14:19:27 +03:00
version: '2.7'
rpc:
listen: tcp://127.0.0.1:6001
2022-08-21 14:19:27 +03:00
server:
command: 'php -dopcache.enable_cli=1 -dopcache.validate_timestamps=0 ../../bin/roadrunner-worker.php'
http:
address: '0.0.0.0:${PORT}'
middleware: ['static']
2022-08-21 14:19:27 +03:00
static:
dir: '../../public'
forbid: ['.php', '.htaccess']
2022-08-21 14:19:27 +03:00
pool:
num_workers: ${WEB_WORKER_NUM}
2022-08-21 14:19:27 +03:00
jobs:
timeout: 300 # 5 minutes
2022-08-21 14:19:27 +03:00
pool:
num_workers: ${TASK_WORKER_NUM}
consume: ['shlink']
pipelines:
shlink:
driver: memory
config:
priority: 10
prefetch: 10
2022-08-21 14:19:27 +03:00
logs:
mode: production
channels:
http:
level: info # Log all http requests, set to info to disable
server:
level: debug # Everything written to worker stderr is logged