From ea1cabde760922f112ad7982f9e3a7d99a322623 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 27 Jul 2022 20:46:11 +0200 Subject: [PATCH] Update bundeled nginx config --- defaults/nginx.conf | 4 ++-- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/nginx.conf b/defaults/nginx.conf index cf1f033..2088ca4 100644 --- a/defaults/nginx.conf +++ b/defaults/nginx.conf @@ -36,14 +36,14 @@ http { index index.html; location = / { - return 307 $pass_scheme://$pass_host/wdc; + return 307 $pass_scheme://$pass_host/wdc/; } location = /index.html { return 307 $pass_scheme://$pass_host/wdc/index.html; } - location ~* \.(html|json)$ { + location ~* \.html$ { expires modified 120s; } diff --git a/entrypoint.sh b/entrypoint.sh index 08a4f34..7b7531b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,7 +26,7 @@ if [ "$(id -u)" = 0 ]; then nginx -c /defaults/nginx.conf fi - # skin config + # skin config: WDC rm -f ./skins/weewx-wdc/skin.conf if [ -e /data/skin-wdc/skin.conf ]; then ln -s /data/skin-wdc/skin.conf ./skins/weewx-wdc/skin.conf