docs: add fonts cache header to nginx config

This commit is contained in:
Sam 2023-03-27 16:08:38 +02:00
parent bcdcb1e0d5
commit 239c9e240f
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ server {
proxy_pass http://127.0.0.1:9000; proxy_pass http://127.0.0.1:9000;
} }
location ~ ^/fonts {
expires 1y;
add_header Cache-Control "public, no-transform";
proxy_pass http://127.0.0.1:3000;
}
location / { location / {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';