diff --git a/webapp/.env b/webapp/.env index ebcf4e51e67008dce8f171fc066836b5f47af737..60addbeb215302d3a2f191c45d79832944087495 100644 --- a/webapp/.env +++ b/webapp/.env @@ -1,4 +1,4 @@ -######################################################################################################### +####################################################################################################################### # In all environments, the following files are loaded if they exist, # the latter taking precedence over the former: # @@ -18,7 +18,7 @@ # - APP_SECRET Application secret to generate CSRF tokens # - DATABASE_URL Database configuration (PostgreSQL) # - MAILER_DSN SMTP configuration -######################################################################################################################## +####################################################################################################################### # - WEBAPP_DEFAULT_URI Default URI used to generate URLs in a non-HTTP context # - WEBAPP_EMAIL_FROM Sender's email address to send emails from the web application # - WEBAPP_EMAIL_ALERTING_TO Email address for alert notifications (web application not working properly, ...) @@ -30,8 +30,8 @@ # - WEBAPP_TRUSTED_HOSTS List of allowed domains and IP to prevent HTTP Host header attacks ####################################################################################################################### # - WEBAPP_EXTERNAL_SILL_HOME_URL SILL website URL -# - WEBAPP_EXTERNAL_SILL_SOFWARE_FR_LINK SILL French URL to display a software. -# - WEBAPP_EXTERNAL_SILL_SOFWARE_EN_LINK SILL English URL to display a software. +# - WEBAPP_EXTERNAL_SILL_SOFWARE_FR_LINK SILL French URL to display a software +# - WEBAPP_EXTERNAL_SILL_SOFWARE_EN_LINK SILL English URL to display a software # - WEBAPP_EXTERNAL_SILL_JSON_DATA_URL URL of SILL data in JSON format ####################################################################################################################### # - WEBAPP_USER_CONFIG_RESET_PASSWORD_TOKEN_LIFETIME Lifetime of reset password token in seconds (default: 1200 = 20 minutes). diff --git a/webapp/.env.dev b/webapp/.env.dev index 8df8b80aeb3e4b399dcc5b6b97c58b2ff3e2975b..bd02d75e603c21f39ef787b5f045db796b06e88c 100644 --- a/webapp/.env.dev +++ b/webapp/.env.dev @@ -1,4 +1,6 @@ -######################################################################################################### +####################################################################################################################### +# Committed environment variables for the DEV environment +####################################################################################################################### # In all environments, the following files are loaded if they exist, # the latter taking precedence over the former: # @@ -8,22 +10,16 @@ # * .env.$APP_ENV.local uncommitted environment-specific overrides # # Real environment variables win over .env files. -# -# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. -# https://symfony.com/doc/current/configuration/secrets.html -# -# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). -# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration -######################################################################################################### +####################################################################################################################### APP_ENV=dev -####################################################################### +####################################################################################################################### WEBAPP_TRUSTED_HOSTS='^127.0.0.1$' # WEBAPP_TRUSTED_HOSTS='^127.0.0.1$' # WEBAPP_TRUSTED_HOSTS='^localhost$' # WEBAPP_TRUSTED_HOSTS='^webapp\.localhost$' # WEBAPP_TRUSTED_HOSTS='^127.0.0.1$|^localhost$' # WEBAPP_TRUSTED_HOSTS='^127.0.0.1$|^localhost$|^webapp\.localhost$' -####################################################################### +####################################################################################################################### WEBAPP_NAME='Comptoir du Libre DEV' WEBAPP_SHORTNAME='Comptoir DEV' WEBAPP_EMAIL_ALERTING_TO=sysadmin@dev.example.org @@ -31,7 +27,7 @@ WEBAPP_EMAIL_FROM=no-reply@dev.example.org WEBAPP_I18N_DEFAULT_LOCALE='fr' # allowed values: 'en' or 'fr' #WEBAPP_TIMEZONE='Europe/Paris' #WEBAPP_TIMEZONE='America/New_York' -####################################################################### +####################################################################################################################### MAILER_DSN=smtp://127.0.0.1:1025 # MAILER_DSN=smtp://user%40example.org:password@mail.example.org:465 # MAILER_DSN=smtp://example.org:465 @@ -65,6 +61,7 @@ MAILER_DSN=smtp://127.0.0.1:1025 +####################################################################################################################### ####################################################################################################################### ####################################################################################################################### diff --git a/webapp/.env.prod b/webapp/.env.prod index 378c18f5d7c57f2fe28ee5d89adf1e80d14e855f..dd514e52ffa79cb42f60bbf577f0d51c63237705 100644 --- a/webapp/.env.prod +++ b/webapp/.env.prod @@ -1,4 +1,4 @@ -######################################################################################################### +####################################################################################################################### # In all environments, the following files are loaded if they exist, # the latter taking precedence over the former: # @@ -18,7 +18,7 @@ # - APP_SECRET Application secret to generate CSRF tokens # - DATABASE_URL Database configuration (PostgreSQL) # - MAILER_DSN SMTP configuration -######################################################################################################################## +####################################################################################################################### # - WEBAPP_DEFAULT_URI Default URI used to generate URLs in a non-HTTP context # - WEBAPP_EMAIL_FROM Sender's email address to send emails from the web application # - WEBAPP_EMAIL_ALERTING_TO Email address for alert notifications (web application not working properly, ...) @@ -79,11 +79,11 @@ WEBAPP_EMAIL_FROM=no-reply@example.org WEBAPP_EMAIL_ALERTING_TO=sysadmin@example.org # Webapp - Name of web application displayed to users -WEBAPP_NAME='Tajine - Registration authority (RA)' -WEBAPP_SHORTNAME='Tajine (RA)' +WEBAPP_NAME='Comptoir du Libre' +WEBAPP_SHORTNAME='Comptoir' # Webapp - User interface language -WEBAPP_I18N_DEFAULT_LOCALE='en' # allowed values: 'en' or 'fr' +WEBAPP_I18N_DEFAULT_LOCALE='fr' # allowed values: 'en' or 'fr' # Webapp - Lifetime of the session in seconds WEBAPP_SESSION_LIFETIME=3600 diff --git a/webapp/.env.test b/webapp/.env.test index 06c4e2b0f4632e4034fd844bc14a2702bfb68591..ac2cff1d451bb01ba9c96b67a22a4f0cd8288e4a 100644 --- a/webapp/.env.test +++ b/webapp/.env.test @@ -1,26 +1,34 @@ -# define your env variables for the test env here +####################################################################################################################### +# Comomn environment variables for the TEST environment +####################################################################################################################### +# In all environments, the following files are loaded if they exist, +# the latter taking precedence over the former: +# +# * .env contains default values for the environment variables needed by the app +# * .env.local uncommitted file with local overrides +# * .env.$APP_ENV committed environment-specific defaults +# * .env.$APP_ENV.local uncommitted environment-specific overrides +# +# Real environment variables win over .env files. +####################################################################################################################### KERNEL_CLASS='App\Kernel' APP_SECRET='$ecretf0rt3st' SYMFONY_DEPRECATIONS_HELPER=999999 PANTHER_APP_ENV=panther PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots - -####################################################################### +####################################################################################################################### #WEBAPP_TRUSTED_HOSTS='^127.0.0.1$' WEBAPP_TRUSTED_HOSTS='^localhost$' -####################################################################### +####################################################################################################################### WEBAPP_NAME='Comptoir du Libre TEST' WEBAPP_SHORTNAME='ComptoirTest' WEBAPP_EMAIL_ALERTING_TO=sysadmin@test.example.org WEBAPP_EMAIL_FROM=no-reply@test.example.org WEBAPP_I18N_DEFAULT_LOCALE='en' #WEBAPP_TIMEZONE='America/New_York' -####################################################################### +####################################################################################################################### MAILER_DSN=null://null -####################################################################### - - - +####################################################################################################################### ####################################################################################################################### #######################################################################################################################