mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Ensured some dynamic RR config for prod env, based on env vars
This commit is contained in:
@@ -9,19 +9,14 @@ server:
|
||||
http:
|
||||
address: '0.0.0.0:8080'
|
||||
static:
|
||||
dir: ../../public
|
||||
forbid:
|
||||
- .php
|
||||
- .htaccess
|
||||
dir: '../../public'
|
||||
forbid: ['.php', '.htaccess']
|
||||
pool:
|
||||
num_workers: 3
|
||||
supervisor:
|
||||
max_worker_memory: 100
|
||||
num_workers: 16
|
||||
|
||||
jobs:
|
||||
pool:
|
||||
num_workers: 2
|
||||
max_worker_memory: 100
|
||||
num_workers: 16
|
||||
timeout: 300
|
||||
consume: ['shlink']
|
||||
pipelines:
|
||||
|
||||
@@ -7,22 +7,17 @@ server:
|
||||
command: 'php -dopcache.enable_cli=1 -dopcache.validate_timestamps=0 ../../bin/roadrunner-worker.php'
|
||||
|
||||
http:
|
||||
address: '0.0.0.0:8080'
|
||||
address: '0.0.0.0:${PORT}'
|
||||
static:
|
||||
dir: ../../public
|
||||
forbid:
|
||||
- .php
|
||||
- .htaccess
|
||||
dir: '../../public'
|
||||
forbid: ['.php', '.htaccess']
|
||||
pool:
|
||||
num_workers: 16 # TODO Make configurable
|
||||
supervisor:
|
||||
max_worker_memory: 100
|
||||
num_workers: ${WEB_WORKER_NUM}
|
||||
|
||||
jobs:
|
||||
timeout: 300
|
||||
timeout: 300 # 5 minutes
|
||||
pool:
|
||||
num_workers: 16 # TODO Make configurable
|
||||
max_worker_memory: 100
|
||||
num_workers: ${TASK_WORKER_NUM}
|
||||
consume: ['shlink']
|
||||
pipelines:
|
||||
shlink:
|
||||
|
||||
Reference in New Issue
Block a user