escheduler.conf 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. server {
  2. listen 8888;# 访问端口
  3. server_name localhost;
  4. #charset koi8-r;
  5. #access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. root /opt/escheduler/front/server; # 静态文件目录
  8. index index.html index.html;
  9. }
  10. location /escheduler {
  11. proxy_pass http://127.0.0.1:12345; # 接口地址
  12. proxy_set_header Host $host;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header x_real_ipP $remote_addr;
  15. proxy_set_header remote_addr $remote_addr;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_http_version 1.1;
  18. proxy_connect_timeout 4s;
  19. proxy_read_timeout 30s;
  20. proxy_send_timeout 12s;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection "upgrade";
  23. }
  24. #error_page 404 /404.html;
  25. # redirect server error pages to the static page /50x.html
  26. #
  27. error_page 500 502 503 504 /50x.html;
  28. location = /50x.html {
  29. root /usr/share/nginx/html;
  30. }
  31. }