Skip to content

Commit

Permalink
don't use long cache times with custom_html for ease of use
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Feb 3, 2025
1 parent a6bc8cc commit 0ae63e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rootfs/etc/s6-overlay/startup.d/07-nginx-configure
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ else
fi

if chk_enabled "${CUSTOM_HTML}"; then
sed -i -e 's#/usr/local/share/tar1090/html-webroot/#/var/custom_html/#' /etc/nginx/nginx-tar1090-webroot.conf
sed -i \
-e 's#/usr/local/share/tar1090/html-webroot/.*#/var/custom_html/;\nadd_header Cache-Control "no-cache";#' \
-e 's#add_header Cache-Control.*;$#add_header Cache-Control "no-cache";#' \
/etc/nginx/nginx-tar1090-webroot.conf
fi

0 comments on commit 0ae63e6

Please sign in to comment.