mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 01:47:14 +02:00
👷 Improve gzip configuration on docker image.
This commit is contained in:
parent
03c9d9c8f1
commit
005a2fe263
3 changed files with 13 additions and 4 deletions
|
@ -4,14 +4,16 @@ server {
|
|||
|
||||
server_name _;
|
||||
|
||||
gzip on;
|
||||
gzip_static on;
|
||||
gzip_proxied any;
|
||||
gzip_types text/plain text/html text/css text/javascript application/javascript application/json application/transit+json;
|
||||
|
||||
# Frontend
|
||||
location / {
|
||||
root /usr/share/nginx/html/;
|
||||
|
||||
try_files $uri /index.html;
|
||||
gzip on;
|
||||
gzip_types text/css text/javascript application/x-javascript application/javascript application/json;
|
||||
|
||||
add_header Cache-Control "max-age=15552000" always;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue