mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
enable brotli
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user