enable brotli

This commit is contained in:
William Blythe
2018-12-22 08:07:20 +11:00
parent e1c115747c
commit d8a8e224f4
2 changed files with 5 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ RUN npm run build
### STAGE 2: Production Environment ###
FROM nginx:1.13.12-alpine as web
FROM fholzer/nginx-brotli:1.13.12 as web
COPY coriolis/.docker/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /src/app/coriolis/build /usr/share/nginx/html
WORKDIR /usr/share/nginx/html

View File

@@ -33,7 +33,10 @@ http {
# ----------------------------------------------------------------------
# https://nginx.org/en/docs/http/ngx_http_gzip_module.html
brotli on;
brotli_static on;
brotli_types *;
brotli_min_length 256;
# Enable gzip compression.
# Default: off
gzip on;