nginx.conf 952 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. server {
  11. listen 80;
  12. server_name localhost;
  13. location / {
  14. root /home/ruoyi/projects/ruoyi-ui;
  15. try_files $uri $uri/ /index.html;
  16. index index.html index.htm;
  17. }
  18. location /prod-api/ws {
  19. proxy_pass http://200.200.19.254:31280;
  20. proxy_http_version 1.1;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection "Upgrade";
  23. }
  24. location /prod-api {
  25. proxy_pass http://200.200.19.254:31280;
  26. }
  27. location ~ ^/prod-bd-api/(.*)$ {
  28. proxy_pass http://200.200.19.253:31838/bdgis/$1;
  29. }
  30. error_page 500 502 503 504 /50x.html;
  31. location = /50x.html {
  32. root html;
  33. }
  34. }
  35. }