From ad20a611803c87e08ddc6ddb9d338ebc131d812e Mon Sep 17 00:00:00 2001 From: Giuseppe Fabiano Date: Fri, 16 Feb 2024 10:00:39 +0100 Subject: [PATCH] Configurazione da variabili di ambiente per redirector-bundle --- webindustry.redirector-bundle.2.0.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webindustry.redirector-bundle.2.0.json b/webindustry.redirector-bundle.2.0.json index d5bc3ed..3de91bf 100644 --- a/webindustry.redirector-bundle.2.0.json +++ b/webindustry.redirector-bundle.2.0.json @@ -15,10 +15,13 @@ "config/packages/redirector-bundle.yaml": { "contents": [ "redirector:", - " redirect_subdomain: null # null | nwww_to_www | www_to_nwww", - " force_protocol: null # null | http | https", + " redirect_subdomain: '%env(REDIRECT_SUBDOMAIN)%' # null | nwww_to_www | www_to_nwww", + " force_protocol: '%env(FORCE_PROTOCOL)%' # null | http | https", " # exclude_redirect_subdomain: # optional", - " # - example.com" + " # - example.com", + "parameters:", + " env(REDIRECT_SUBDOMAIN): null", + " env(FORCE_PROTOCOL): null" ], "executable": false }