a_igin

Untitled

Sep 24th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. upstream web {
  2. ip_hash;
  3. server web:8000;
  4. }
  5.  
  6. # portal
  7. server {
  8. location / {
  9. proxy_pass http://web/;
  10. proxy_set_header Host $http_host;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header X-Forwarded-Protocol "";
  13. proxy_set_header X-Forwarded-Ssl "";
  14. }
  15. listen 8000;
  16. server_name localhost;
  17.  
  18. location /static/ {
  19. autoindex on;
  20. alias /srv/static/;
  21. }
  22. location /media/ {
  23. autoindex on;
  24. alias /srv/media/;
  25. }
  26.  
  27. }
  28.  
Add Comment
Please, Sign In to add comment