nginx.conf.template 466 B

123456789101112131415161718
  1. server {
  2. listen 80;
  3. root /usr/share/nginx/html;
  4. index index.html;
  5. location / {
  6. try_files $uri $uri/ /index.html;
  7. }
  8. location ~ ^/(v1|v2|auth|version|proxy|update|cli|grafana) {
  9. proxy_pass ${BACKEND_URL};
  10. proxy_set_header Host $host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_http_version 1.1;
  13. proxy_set_header Upgrade $http_upgrade;
  14. proxy_set_header Connection "upgrade";
  15. }
  16. }