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.

29 lines
651 B

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