chore: update nginx.conf

This commit is contained in:
fantasticit 2022-06-28 21:37:39 +08:00
parent d7a9f68af4
commit fccfaa09b7
1 changed files with 15 additions and 8 deletions

View File

@ -54,6 +54,13 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';
} }
location /static/ {
gzip_static on;
expires max;
add_header Cache-Control public;
alias /apps/think/packages/server/static/;
}
} }
server { server {