mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
enable brotli
This commit is contained in:
@@ -27,7 +27,7 @@ RUN npm run build
|
|||||||
|
|
||||||
|
|
||||||
### STAGE 2: Production Environment ###
|
### 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 coriolis/.docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY --from=builder /src/app/coriolis/build /usr/share/nginx/html
|
COPY --from=builder /src/app/coriolis/build /usr/share/nginx/html
|
||||||
WORKDIR /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
|
# 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.
|
# Enable gzip compression.
|
||||||
# Default: off
|
# Default: off
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|||||||
Reference in New Issue
Block a user