mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
example configurations.
This commit is contained in:
parent
6be2426f09
commit
af016709f4
4 changed files with 58 additions and 1 deletions
17
docs/examples/nginx/nginx.conf
Normal file
17
docs/examples/nginx/nginx.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue