forked from junoyoon/simpleupdatesiterepo
-
Notifications
You must be signed in to change notification settings - Fork 20
Standalone configs
Merkushev Kirill edited this page Jul 13, 2015
·
2 revisions
Example of supervisord config
[program:juseppe]
command=java -jar -Dupdate.center.plugins.dir=/var/lib/juseppe/plugins/ -Dupdate.center.saveto.dir=/var/lib/juseppe/ -Dupdate.center.baseurl=http://juseppe.testpers.yandex.net /usr/share/juseppe/server.jar
redirect_stderr=true
stdout_logfile=/var/log/juseppe/supervisord.log
user=juseppe
nginx
upstream app_server {
server 127.0.0.1:8080 max_fails=3 fail_timeout=30s;
}
server {
listen 80;
listen [::]:80 default ipv6only=on;
server_name juseppe;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://app_server;
break;
}
}
}