From 9efc4dec18440fdab1a1220f9c630e0ce4d28302 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 17 Mar 2021 20:38:23 +0100 Subject: [PATCH] web: fix syntax for expires directive Signed-off-by: Jens Langhammer --- web/nginx.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/nginx.conf b/web/nginx.conf index 42a8d3d21..53774de8e 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -57,12 +57,12 @@ http { ## gzip on; - # gzip_vary on; - # gzip_proxied any; - # gzip_comp_level 6; - # gzip_buffers 16 8k; - # gzip_http_version 1.1; - # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; ## # Virtual Host Configs @@ -78,7 +78,7 @@ http { access_log /dev/stdout json_combined; } location /static/ { - expires @31d; + expires 31d; add_header Cache-Control "public, no-transform"; add_header X-authentik-version "2021.3.4"; add_header Vary X-authentik-version;