Commit 7a200c46 authored by Simonas's avatar Simonas

release 1.8.0

parent ae513a52
...@@ -2,7 +2,7 @@ PROJECT=biuro-staging ...@@ -2,7 +2,7 @@ PROJECT=biuro-staging
IMAGE_NGINX=fholzer/nginx-brotli IMAGE_NGINX=fholzer/nginx-brotli
IMAGE_MYSQL=mariadb:10.3 IMAGE_MYSQL=mariadb:10.3
IMAGE_WORDPRESS=biuro/web:1.7.0 IMAGE_WORDPRESS=biuro/web:1.8.0
IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3 IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3
DB_NAME=staging_biuro DB_NAME=staging_biuro
......
# ----------------------------------------------------------------------
# | SVGZ Compression |
# ----------------------------------------------------------------------
# SVGZ files are already compressed.
# Disable gzip function for `.svgz` files.
location ~* \.svgz$ {
gzip off;
add_header Content-Encoding gzip;
include h5bp/security/x-content-type-options.conf;
include h5bp/cross-origin/requests.conf;
}
# ----------------------------------------------------------------------
# | Brotli pre-compressed content |
# ----------------------------------------------------------------------
# Serve brotli compressed files if they exist and if the client accepts brotli
# encoding.
#
# (!) To make this part relevant, you need to generate encoded files by your
# own. Enabling this part will not auto-generate brotlied files.
#
# Note that some clients (eg. browsers) require a secure connection to request
# brotli-compressed resources.
# https://www.chromestatus.com/feature/5420797577396224
#
# https://github.com/eustas/ngx_brotli/#brotli_static
brotli_static on;
# ----------------------------------------------------------------------
# | GZip pre-compressed content |
# ----------------------------------------------------------------------
# Serve gzip compressed files if they exist and if the client accepts gzip
# encoding.
#
# (!) To make this part relevant, you need to generate encoded files by your
# own. Enabling this part will not auto-generate gziped files.
#
# https://nginx.org/en/docs/http/ngx_http_gzip_static_module.html
gzip_static on;
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
# CV security redirects # CV security redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
location ^~ /wp-content/uploads/2019/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.lt.*) {
return 403;
}
}
location ^~ /wp-content/uploads/additional/ { location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment