mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
17 lines
441 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
|
|
}
|