nginx.conf.healthy-ui
This commit is contained in:
parent
44473e7c99
commit
ef7b1d61ca
|
@ -0,0 +1,27 @@
|
||||||
|
|
||||||
|
access_log off; # 推荐关闭
|
||||||
|
|
||||||
|
server {
|
||||||
|
# 监听容器内的 80 端口
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
# 静态文件根目录
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
|
# 默认首页
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
# 核心路由配置 (与 sys-ui 完全相同)
|
||||||
|
# 因为网关已经剥离了 /lmg/ 前缀,所以这里直接处理根路径即可
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
# 缓存配置 (与 sys-ui 相同)
|
||||||
|
location ~* \.(?:css|js|gif|ico|jpe?g|png|svg|woff2?)$ {
|
||||||
|
expires 7d;
|
||||||
|
add_header Cache-Control "public";
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue