代码拉取完成,页面将自动刷新
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
# gzip
gzip on;
gzip_min_length 256;
gzip_vary on;
gzip_types *;
# main
# location = / {
# rewrite / /doc/ redirect;
# }
# 所有静态资源及缓存
location ~* .*\.(jpg|gif|jpeg|css|png|js|wasm) {
expires 10d;
}
# view history 模式 如果修改了VIEW_PATH,请修改'view'为实际值
location ~* ^\/view\/[a-zA-Z0-9]+(\/|\?.*|)$ {
index index.html;
try_files $uri $uri/ /view/index.html;
}
# api 反向代理
location ^~ /api {
proxy_pass http://godspen:7051;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。