From e97fc0d6756b9f91b174f9df53aea9972367a867 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Wed, 28 Feb 2024 16:27:01 +0100 Subject: [PATCH] fix log --- src/main/resources/website/nginx-configmap.yaml | 4 ++-- .../cljc/dda/c4k_website/website/website_internal_test.cljc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/website/nginx-configmap.yaml b/src/main/resources/website/nginx-configmap.yaml index 7aeab09..856db89 100644 --- a/src/main/resources/website/nginx-configmap.yaml +++ b/src/main/resources/website/nginx-configmap.yaml @@ -9,7 +9,7 @@ data: nginx.conf: | user nginx; worker_processes 3; - error_log /var/log/nginx/error.log; info; + error_log /var/log/nginx/error.log info; pid /var/log/nginx/nginx.pid; worker_rlimit_nofile 8192; events { @@ -21,7 +21,7 @@ data: log_format main '$remote_addr - $remote_user [$time_local] $status' '"$request" $body_bytes_sent "$http_referer"' '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /var/log/nginx/access.log; main; + access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; keepalive_timeout 65; diff --git a/src/test/cljc/dda/c4k_website/website/website_internal_test.cljc b/src/test/cljc/dda/c4k_website/website/website_internal_test.cljc index 2540b8a..13b286d 100644 --- a/src/test/cljc/dda/c4k_website/website/website_internal_test.cljc +++ b/src/test/cljc/dda/c4k_website/website/website_internal_test.cljc @@ -18,6 +18,7 @@ (st/instrument `cut/generate-build-cron) (st/instrument `cut/generate-nginx-service) + (deftest should-generate-redirects (is (= "rewrite ^/products.html\\$ /offer.html permanent;\n rewrite ^/one-more\\$ /redirect permanent;" (cut/generate-redirects {:issuer "staging"