You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
722 B

  1. server {
  2. listen 80;
  3. charset utf-8;
  4. add_header X-Frame-Options DENY;
  5. location / {
  6. root /var/www/html;
  7. try_files $uri $uri/ /index.html;
  8. }
  9. location /v1/ {
  10. proxy_pass http://backend:8000/v1/;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header Host $host;
  13. proxy_redirect off;
  14. proxy_read_timeout 300;
  15. }
  16. location /admin/ {
  17. proxy_pass http://backend:8000/admin/;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. proxy_set_header Host $host;
  20. proxy_redirect off;
  21. }
  22. location /static/ {
  23. autoindex on;
  24. alias /static/;
  25. }
  26. }
  27. server_tokens off;