mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 13:50:06 +05:30
Replace nginx image to enable gzpi and brotli encoding
This commit is contained in:
parent
b47522e6f9
commit
885729fcde
@ -68,7 +68,7 @@ CMD ["php-fpm"]
|
||||
|
||||
# ================================================================================
|
||||
|
||||
FROM nginx:1.15.10-alpine AS web
|
||||
FROM fholzer/nginx-brotli:v1.16.0 AS web
|
||||
|
||||
ENV PHP_SERVERS php:9000
|
||||
|
||||
|
@ -29,5 +29,19 @@ http {
|
||||
default "off";
|
||||
}
|
||||
|
||||
# GZIP
|
||||
gzip on;
|
||||
gzip_comp_level 6;
|
||||
gzip_min_length 256;
|
||||
gzip_proxied any;
|
||||
gzip_vary on;
|
||||
gzip_types application/* font/* image/* text/*;
|
||||
|
||||
# Brotli
|
||||
brotli on;
|
||||
brotli_comp_level 6;
|
||||
brotli_min_length 256;
|
||||
brotli_types application/* font/* image/* text/*;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user