Skip to content

Commit

Permalink
🎉 version(architecture): v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting-Code committed Aug 20, 2024
1 parent 08c82a8 commit 374eae3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ http {
server_name localhost;

location / {
proxy_pass: http://139.199.173.241:80;
if ($request_filename ~* .*\.(?:htm|html)$) ## 配置页面不缓存html和htm结尾的文件
{
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
Expand All @@ -52,6 +53,7 @@ http {
# location /micro 则最后不加/
# location /micro/ 则最后加/
location /micro {
proxy_pass: http://139.199.173.241:80/micro;
if ($request_filename ~* .*\.(?:htm|html)$) ## 配置页面不缓存html和htm结尾的文件
{
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
Expand Down Expand Up @@ -90,6 +92,7 @@ http {
# location /docs 则最后不加/
# location /docs/ 则最后加/
location /docs {
proxy_pass: http://139.199.173.241:8680/docs;
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 374eae3

Please sign in to comment.