dove.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. server {
  2. listen 9530;
  3. server_name localhost;
  4. location / {
  5. proxy_set_header Host $http_host;
  6. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  7. proxy_pass http://localhost:9538;
  8. }
  9. location /acc/ {
  10. proxy_set_header Host $http_host;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_pass http://127.0.0.1:8000/;
  13. }
  14. location /inv/ {
  15. proxy_set_header Host $http_host;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_pass http://127.0.0.1:8000/;
  18. }
  19. location /manage/ {
  20. proxy_set_header Host $http_host;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. proxy_pass http://127.0.0.1:8000/;
  23. }
  24. location /im/socket.io/ {
  25. proxy_pass http://dove.test.yunterp.com/im/socket.io/;
  26. proxy_http_version 1.1;
  27. proxy_set_header Upgrade $http_upgrade;
  28. proxy_set_header Connection "upgrade";
  29. }
  30. error_page 500 502 503 504 /50x.html;
  31. location = /50x.html {
  32. root /usr/share/nginx/html;
  33. }
  34. }