2
0

default.conf 824 B

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