Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't use long cache times with custom_html for ease of use #260

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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