mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
73bd83a527
Instead of binding to `0.0.0.0`, use `127.0.0.1` instead for security concerns. "The Python Web server is more vulnerable than nginx that proxies it." Signed-off-by: John Wu <webmaster@leapoahead.com>
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
[supervisord]
|
|
nodaemon=false
|
|
logfile=/opt/redash/logs/supervisord.log
|
|
pidfile=/opt/redash/supervisord/supervisord.pid
|
|
directory=/opt/redash/current
|
|
|
|
[inet_http_server]
|
|
port = 127.0.0.1:9001
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[program:redash_server]
|
|
command=/opt/redash/current/bin/run gunicorn -b 127.0.0.1:5000 --name redash -w 4 redash.wsgi:app
|
|
process_name=redash_server
|
|
numprocs=1
|
|
priority=999
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/opt/redash/logs/api.log
|
|
stderr_logfile=/opt/redash/logs/api_error.log
|
|
|
|
# There are two queue types here: one for ad-hoc queries, and one for the refresh of scheduled queries
|
|
# (note that "scheduled_queries" appears only in the queue list of "redash_celery_scheduled").
|
|
# The default concurrency level for each is 2 (-c2), you can increase based on your machine's resources.
|
|
|
|
[program:redash_celery]
|
|
command=/opt/redash/current/bin/run celery worker --app=redash.worker --beat -c2 -Qqueries,celery
|
|
process_name=redash_celery
|
|
numprocs=1
|
|
priority=999
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/opt/redash/logs/celery.log
|
|
stderr_logfile=/opt/redash/logs/celery_error.log
|
|
|
|
[program:redash_celery_scheduled]
|
|
command=/opt/redash/current/bin/run celery worker --app=redash.worker -c2 -Qscheduled_queries
|
|
process_name=redash_celery_scheduled
|
|
numprocs=1
|
|
priority=999
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/opt/redash/logs/celery.log
|
|
stderr_logfile=/opt/redash/logs/celery_error.log
|