From 9e121d571674edc6d50d9393cdc92fcc0f4fb55e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Jul 2026 10:23:59 +0000 Subject: [PATCH] ci: emit Caddy access log per site (import accesslog) for view counts --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d1921cd..94e9f0e 100644 --- a/action.yml +++ b/action.yml @@ -193,7 +193,7 @@ runs: echo " $(find "/srv/sites/${DOMAIN}" -type f | wc -l) files published" echo "::endgroup::" - write_fragment "$(printf '%s {\n\troot * /srv/sites/%s\n\tfile_server\n\ttry_files {path} /index.html\n}\n' "$SITE_ADDR" "$DOMAIN")" + write_fragment "$(printf '%s {\n\timport accesslog\n\troot * /srv/sites/%s\n\tfile_server\n\ttry_files {path} /index.html\n}\n' "$SITE_ADDR" "$DOMAIN")" # ---- optional install-script subdomain: curl get. | sh ---- # Opt-in via .env INSTALL_SH= (e.g. install.sh). @@ -264,7 +264,7 @@ runs: echo " container $SLUG up → port $APP_PORT" echo "::endgroup::" - write_fragment "$(printf '%s {\n\treverse_proxy %s:%s\n}\n' "$SITE_ADDR" "$SLUG" "$APP_PORT")" + write_fragment "$(printf '%s {\n\timport accesslog\n\treverse_proxy %s:%s\n}\n' "$SITE_ADDR" "$SLUG" "$APP_PORT")" ;; *) echo "::error::unknown DEPLOY=$DT (use static | docker | docker-db)"; exit 1 ;;