mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
1 parent
d18badb930
commit
035c1efbf3
1 file changed
+2
-1
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user