Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream web {
- ip_hash;
- server web:8000;
- }
- # portal
- server {
- location / {
- proxy_pass http://web/;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Protocol "";
- proxy_set_header X-Forwarded-Ssl "";
- }
- listen 8000;
- server_name localhost;
- location /static/ {
- autoindex on;
- alias /srv/static/;
- }
- location /media/ {
- autoindex on;
- alias /srv/media/;
- }
- }
Add Comment
Please, Sign In to add comment