mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
39 lines
746 B
Nginx Configuration File
39 lines
746 B
Nginx Configuration File
#MaxKey nginx Proxy Server
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
#服务器集群路径
|
|
#认证后端
|
|
location /sign/ {
|
|
proxy_pass http://192.168.0.104:9527/sign/;
|
|
}
|
|
|
|
#认证前端
|
|
location /maxkey/ {
|
|
proxy_pass http://192.168.0.104:8527/maxkey/;
|
|
}
|
|
|
|
#管理后端
|
|
location /maxkey-mgt-api/ {
|
|
proxy_pass http://192.168.0.104:9526/maxkey-mgt-api/;
|
|
}
|
|
|
|
#管理前端
|
|
location /maxkey-mgt/ {
|
|
proxy_pass http://192.168.0.104:8526/maxkey-mgt/;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
} |