nginx-ui.conf 674 B

12345678910111213141516171819202122
  1. # Nginx UI Template Start
  2. name = "Nginx UI"
  3. author = "@0xJacky"
  4. description = { en = "Nginx UI Config Templateg", zh_CN = "Nginx UI 配置模板"}
  5. # Nginx UI Template End
  6. # Nginx UI Custom Start
  7. map $http_upgrade $connection_upgrade {
  8. default upgrade;
  9. '' close;
  10. }
  11. # Nginx UI Custom End
  12. location / {
  13. proxy_set_header Host $host;
  14. proxy_set_header X-Real-IP $remote_addr;
  15. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16. proxy_set_header X-Forwarded-Proto $scheme;
  17. proxy_http_version 1.1;
  18. proxy_set_header Upgrade $http_upgrade;
  19. proxy_set_header Connection $connection_upgrade;
  20. proxy_pass http://127.0.0.1:{{.HTTPPORT}}/;
  21. }