Skip to content

Commit

Permalink
feat(nginx): update nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulike committed Sep 8, 2024
1 parent 2302ac8 commit e4fb352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions nginx/configurations/conf.d/admin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ server {
location / {
include /etc/nginx/proxy.conf;
proxy_pass http://admin:3000;
add_header Cache-Control "public, no-cache";
include /etc/nginx/security-headers.conf;
}

Expand All @@ -22,13 +21,13 @@ server {
location /server/account/ {
include /etc/nginx/proxy.conf;
proxy_pass http://auth-server:4001/;
expires -1;
add_header Cache-Control "no-store";
}

location /server/ {
include /etc/nginx/proxy.conf;
proxy_pass http://admin-server:4003/;
add_header Cache-Control "public, no-cache";
add_header Cache-Control "no-cache";
}

listen 443 http2 ssl;
Expand Down
3 changes: 1 addition & 2 deletions nginx/configurations/conf.d/blog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ server {
location / {
include /etc/nginx/proxy.conf;
proxy_pass http://blog:3000;
add_header Cache-Control "public, no-cache";
include /etc/nginx/security-headers.conf;
}

Expand All @@ -22,7 +21,7 @@ server {
location /server/ {
include /etc/nginx/proxy.conf;
proxy_pass http://blog-server:4004/;
add_header Cache-Control "public, no-cache";
add_header Cache-Control "no-cache";
}

listen 443 http2 ssl;
Expand Down

0 comments on commit e4fb352

Please sign in to comment.