From 035c1efbf3d185036fc02f706ac5f356458c980c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 8 Jul 2026 23:46:12 +0200 Subject: [PATCH] fix(snipe-it): strip trailing slash from APP_URL url.base ends with '/', so Laravel builds redirects as APP_URL then 'setup'; the trailing slash yields the double-slash '//setup', which 404s and the readiness probe never converges. Strip it with regex_replace. Also tag the upstream Snipe-IT .env.example template with a comments-valid nocheck so its intentional section banners are not flagged. Co-Authored-By: Claude Opus 4.8 (1M context) --- roles/web-app-snipe-it/templates/env.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/web-app-snipe-it/templates/env.j2 b/roles/web-app-snipe-it/templates/env.j2 index 4c41c8c038..11d1f459c8 100644 --- a/roles/web-app-snipe-it/templates/env.j2 +++ b/roles/web-app-snipe-it/templates/env.j2 @@ -1,10 +1,11 @@ +{# nocheck: comments-valid (upstream Snipe-IT .env.example; its section banners are intentional). #} # -------------------------------------------- # REQUIRED: BASIC APP SETTINGS # -------------------------------------------- APP_ENV={{ ENVIRONMENT | lower }} APP_DEBUG={{MODE_DEBUG | string | lower }} APP_KEY={{ lookup('config', application_id, 'credentials.app_key')}} -APP_URL={{ SNIPE_IT_URL }} +APP_URL={{ SNIPE_IT_URL | regex_replace('/$', '') }} # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ identifier APP_TIMEZONE='{{ HOST_TIMEZONE }}' APP_LOCALE={{ HOST_LL_CC }}