nginx.conf 500 B

123456789101112131415
  1. #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
  2. location __PATH__/ {
  3. proxy_pass http://127.0.0.1:__PORT__/;
  4. proxy_redirect off;
  5. proxy_set_header Host $host;
  6. proxy_set_header X-Real-IP $remote_addr;
  7. proxy_set_header X-Forwarded-Proto $scheme;
  8. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  9. proxy_set_header X-Forwarded-Host $server_name;
  10. proxy_http_version 1.1;
  11. proxy_set_header Connection "upgrade";
  12. proxy_set_header Upgrade $http_upgrade;
  13. }