Skip to content

Instantly share code, notes, and snippets.

@Purexo
Forked from ralmn/sp-nginx.conf
Last active August 29, 2015 14:24
Show Gist options
  • Save Purexo/f1c9aa2e27ef9d7f69e8 to your computer and use it in GitHub Desktop.
Save Purexo/f1c9aa2e27ef9d7f69e8 to your computer and use it in GitHub Desktop.
server{
listen *:80;
server_name server.superpowers.ralmn.fr;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
[program:server_superpowers_community]
command=node /home/superpowers/superpowers/server/index.js --data-path=/home/superpowers/sp-projects
directory=/home/superpowers
user=superpowers
autostart=true
autorestart=true
#strdout_logfile = /home/ralmn/sp_log/out.log
#strderr_logfile = /home/ralmn/sp_log/err.log
stdout_logfile_maxbytes = 10MB
stderr_logfile_maxbytes = 10MB
environment=HOME="/home/superpowers",USER="superpowers"
/etc/supervisor/conf.d/superpowers.conf (END)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment