nginx.conf 445 B

12345678910111213141516171819
  1. server {
  2. listen 80;
  3. server_name _;
  4. root /usr/share/nginx/html;
  5. index index.html;
  6. location /demand/api/v1/ {
  7. proxy_pass http://backend:8000;
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Real-IP $remote_addr;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Forwarded-Proto $scheme;
  12. }
  13. location / {
  14. try_files $uri /index.html;
  15. }
  16. }