| | |
| | | try_files $uri $uri/ /index.html; |
| | | index index.html index.htm; |
| | | } |
| | | |
| | | location /prod-api/{ |
| | | |
| | | location /sso { |
| | | alias /usr/share/nginx/html/sso; |
| | | try_files $uri $uri/ /sso/; |
| | | #index index.html index.htm; |
| | | } |
| | | |
| | | location /sys { |
| | | alias /usr/share/nginx/html/sys; |
| | | try_files $uri $uri/ /sys/; |
| | | #index index.html index.htm; |
| | | } |
| | | |
| | | location /prod-api/ { |
| | | proxy_set_header Host $http_host; |
| | | proxy_set_header X-Real-IP $remote_addr; |
| | | proxy_set_header REMOTE-HOST $remote_addr; |
| | |
| | | proxy_pass http://se-gateway:8080/; |
| | | } |
| | | |
| | | # 避免actuator暴露 |
| | | # actuator |
| | | if ($request_uri ~ "/actuator") { |
| | | return 403; |
| | | } |