nginx.conf 746 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #MaxKey nginx Proxy Server
  2. server {
  3. listen 80;
  4. server_name localhost;
  5. location / {
  6. root /usr/share/nginx/html;
  7. index index.html index.htm;
  8. try_files $uri $uri/ /index.html;
  9. }
  10. #服务器集群路径
  11. #认证后端
  12. location /sign/ {
  13. proxy_pass http://192.168.0.104:9527/sign/;
  14. }
  15. #认证前端
  16. location /maxkey/ {
  17. proxy_pass http://192.168.0.104:8527/maxkey/;
  18. }
  19. #管理后端
  20. location /maxkey-mgt-api/ {
  21. proxy_pass http://192.168.0.104:9526/maxkey-mgt-api/;
  22. }
  23. #管理前端
  24. location /maxkey-mgt/ {
  25. proxy_pass http://192.168.0.104:8526/maxkey-mgt/;
  26. }
  27. error_page 500 502 503 504 /50x.html;
  28. location = /50x.html {
  29. root /usr/share/nginx/html;
  30. }
  31. }