From 397fffb25202e260ae059b802f14c7bc5860c351 Mon Sep 17 00:00:00 2001 From: lgromero Date: Mon, 16 Sep 2024 12:29:32 +0200 Subject: [PATCH] refs #734 use environment variables in .env files and disable web depuration toolbar --- .env | 4 ++-- config/packages/web_profiler.yaml | 2 +- config/services.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 939c377..5ff3b6f 100644 --- a/.env +++ b/.env @@ -15,10 +15,10 @@ # https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration ###> symfony/framework-bundle ### -APP_ENV=dev +APP_ENV=${APP_ENV:-dev} APP_SECRET=31180fc3aa11818328106d014be0108c +OGGIT_URL=${OGGIT_URL} ###< symfony/framework-bundle ### -OGGIT_URL=http://127.0.0.1:5000 ###> doctrine/doctrine-bundle ### # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml diff --git a/config/packages/web_profiler.yaml b/config/packages/web_profiler.yaml index 17893da..83738d1 100644 --- a/config/packages/web_profiler.yaml +++ b/config/packages/web_profiler.yaml @@ -1,6 +1,6 @@ when@dev: web_profiler: - toolbar: true + toolbar: false intercept_redirects: false framework: diff --git a/config/services.yaml b/config/services.yaml index 773ef37..3d254e4 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -4,7 +4,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration parameters: - + OGGIT_URL: '%env(OGGIT_URL)%' services: # default configuration for services in *this* file _defaults: