Advertisement
datheist

nginx.conf

Jul 28th, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. upstream fullstack_application {
  2. server web:8000;
  3. }
  4.  
  5. server {
  6.  
  7. listen 80;
  8.  
  9. location / {
  10. proxy_pass http://fullstack_application;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header Host $http_host;
  13. proxy_redirect off;
  14. }
  15.  
  16.  
  17. location /static/ {
  18. alias /home/app/web/static/;
  19. }
  20.  
  21. location /media/ {
  22. alias /home/app/web/media/;
  23. }
  24.  
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement