Skip to content

Commit

Permalink
🎉 version(architecture): v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting-Code committed Aug 20, 2024
1 parent e05bf2d commit 2b8cc3b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,8 @@ http {
server_name 139.199.173.241;
# location /docs 则最后不加/
# location /docs/ 则最后加/
location / {
proxy_pass http://139.199.173.241:8680;
if ($request_filename ~* .*\.(?:htm|html)$) ## 配置页面不缓存html和htm结尾的文件
{
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
}
# 把匹配到的路径重写, 注意要以/结尾
alias /usr/share/nginx/html/docs/;
# 默认首页
index index.html;
try_files $uri $uri/ /docs/index.html;
}
location ~ /docs/ {
proxy_pass http://139.199.173.241:8680/docs/;
proxy_pass http://139.199.173.241:8680;
if ($request_filename ~* .*\.(?:htm|html)$) ## 配置页面不缓存html和htm结尾的文件
{
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
Expand Down

0 comments on commit 2b8cc3b

Please sign in to comment.