nginx.conf 558 B

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