diff --git a/Dockerfile b/Dockerfile index 7ed777e..d641ea4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ FROM nginx:latest +COPY gzip.conf /etc/nginx/conf.d COPY src /usr/share/nginx/html diff --git a/gzip.conf b/gzip.conf new file mode 100644 index 0000000..4b82adb --- /dev/null +++ b/gzip.conf @@ -0,0 +1,13 @@ +gzip on; +gunzip on; +gzip_types + text/plain + text/css + text/js + text/xml + text/javascript + application/javascript + application/json + application/xml + application/rss+xml + image/svg+xml;