aswi2021jmsd-gitlab4/docker/nginx/application.conf @ e96150c4
1 | 9832694f | Stanislav Král | server {
|
---|---|---|---|
2 | listen 80; |
||
3 | listen [::]:80; |
||
4 | |||
5 | location / {
|
||
6 | proxy_set_header Host $host; |
||
7 | proxy_set_header X-Real-IP $remote_addr; |
||
8 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||
9 | proxy_set_header X-Forwarded-Proto $scheme; |
||
10 | |||
11 | proxy_redirect off; |
||
12 | proxy_pass http://gunicorn:8000; |
||
13 | } |
||
14 | |||
15 | location = /50x.html { |
||
16 | root /usr/share/nginx/html; |
||
17 | } |
||
18 | } |