captive.whump.shanti-portal/docs/examples/nginx/nginx.conf
2016-04-18 21:42:29 +02:00

17 lines
441 B
Nginx Configuration File

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;
}
}
}