19 lines
526 B
Nginx Configuration File
19 lines
526 B
Nginx Configuration File
server {
|
|
listen 7456;
|
|
server_name localhost;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
location /admin-api/ {
|
|
# 去掉/prod-api前缀
|
|
rewrite ^/admin-api/(.*)$ /$1 break;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_pass http://192.168.0.152:48080/;
|
|
break;
|
|
}
|
|
}
|