captive.whump.shanti-portal/docs/examples/nginx/nginx.conf

18 lines
441 B
Nginx Configuration File
Raw Normal View History

2016-04-18 19:42:29 +00:00
server {
listen {{webportal_ip}}:80 default_server;
server_name _;
location / {
# Must fix the HTTP_X_FORWARDED_FOR value in WSGI environ.
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if (!-f $request_filename) {
proxy_pass http://127.0.0.1:8080;
break;
}
}
}