Archived
1
0
Fork 0

Update bundeled nginx config

This commit is contained in:
Daniel Kempkens 2022-07-27 20:46:11 +02:00
parent f1409e8bf6
commit ea1cabde76
2 changed files with 3 additions and 3 deletions

View file

@ -36,14 +36,14 @@ http {
index index.html; index index.html;
location = / { location = / {
return 307 $pass_scheme://$pass_host/wdc; return 307 $pass_scheme://$pass_host/wdc/;
} }
location = /index.html { location = /index.html {
return 307 $pass_scheme://$pass_host/wdc/index.html; return 307 $pass_scheme://$pass_host/wdc/index.html;
} }
location ~* \.(html|json)$ { location ~* \.html$ {
expires modified 120s; expires modified 120s;
} }

View file

@ -26,7 +26,7 @@ if [ "$(id -u)" = 0 ]; then
nginx -c /defaults/nginx.conf nginx -c /defaults/nginx.conf
fi fi
# skin config # skin config: WDC
rm -f ./skins/weewx-wdc/skin.conf rm -f ./skins/weewx-wdc/skin.conf
if [ -e /data/skin-wdc/skin.conf ]; then if [ -e /data/skin-wdc/skin.conf ]; then
ln -s /data/skin-wdc/skin.conf ./skins/weewx-wdc/skin.conf ln -s /data/skin-wdc/skin.conf ./skins/weewx-wdc/skin.conf