mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
👷 Improve gzip configuration on docker image.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM nginx:alpine
|
||||
FROM nginx:1.17.2
|
||||
|
||||
LABEL maintainer="Monogramm Maintainers <opensource at monogramm dot io>"
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -182,6 +182,10 @@ function run {
|
||||
docker-compose -p uxbox -f ./docker/docker-compose.yml up -d
|
||||
}
|
||||
|
||||
function log {
|
||||
docker-compose -p uxbox -f docker/docker-compose.yml logs -f --tail=50
|
||||
}
|
||||
|
||||
function stop {
|
||||
echo "Stoping containers..."
|
||||
docker-compose -p uxbox -f ./docker/docker-compose.yml stop
|
||||
@@ -242,6 +246,9 @@ case $1 in
|
||||
run)
|
||||
run
|
||||
;;
|
||||
log)
|
||||
log
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user