nginx-ui.conf 700 B

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