Skip to content

Instantly share code, notes, and snippets.

@vilisov
Last active August 29, 2015 14:16
Show Gist options
  • Save vilisov/2656f0bf5f7e0ce5632f to your computer and use it in GitHub Desktop.
Save vilisov/2656f0bf5f7e0ce5632f to your computer and use it in GitHub Desktop.
supervisor.conf and nginx.conf for cdn server
user webmaster;
worker_processes 1;
daemon off;
error_log /home/webmaster/logs/nginx/error.log;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log /home/webmaster/logs/nginx/access.log;
sendfile on;
keepalive_timeout 65;
gzip on;
include /home/webmaster/app/*.conf;
}
[unix_http_server]
file=/tmp/supervisor.sock
username=user
password=123
[supervisord]
logfile=/home/webmaster/logs/supervisord.log
logfile_maxbytes=50MB
logfile_backups=5
loglevel=info
pidfile=/tmp/supervisord.pid
nodaemon=false
minfds=1024
minprocs=200
user=webmaster
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
username=user
password=123
history_file=~/.sc_history
[include]
files = /home/webmaster/app/*.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment