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 }}