Use gzip compression in nginx
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
95a096e105
commit
816e354540
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
FROM nginx:latest
|
||||
COPY gzip.conf /etc/nginx/conf.d
|
||||
COPY src /usr/share/nginx/html
|
||||
|
||||
|
|
13
gzip.conf
Normal file
13
gzip.conf
Normal file
|
@ -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;
|
Loading…
Reference in a new issue