nginx-ui.conf 653 B

123456789101112131415161718192021
  1. map $http_upgrade $connection_upgrade {
  2. default upgrade;
  3. '' close;
  4. }
  5. server {
  6. listen 80;
  7. server_name localhost; # your domain here
  8. client_max_body_size 128M; # maximum upload size
  9. location / {
  10. proxy_set_header Host $host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  13. proxy_set_header X-Forwarded-Proto $scheme;
  14. proxy_http_version 1.1;
  15. proxy_set_header Upgrade $http_upgrade;
  16. proxy_set_header Connection $connection_upgrade;
  17. proxy_pass http://127.0.0.1:9000/;
  18. }
  19. }