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