Oleksii Petrenko | 24f1f8f | 2020-06-26 18:09:43 +0300 | [diff] [blame^] | 1 | upstream tr_bor { |
2 | server web:8000; | ||||
3 | |||||
4 | } | ||||
5 | |||||
6 | server { | ||||
7 | |||||
8 | listen 80; | ||||
9 | |||||
10 | location / { | ||||
11 | proxy_pass http://web:8000; | ||||
12 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||
13 | proxy_set_header Host $host; | ||||
14 | proxy_redirect off; | ||||
15 | } | ||||
16 | |||||
17 | location /staticfiles/ { | ||||
18 | alias /staticfiles/; | ||||
19 | } | ||||
20 | |||||
21 | } |