Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Comptoir du Libre v3 - Upcoming version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Comptoir
Comptoir du Libre v3 - Upcoming version
Commits
338aafe8
Commit
338aafe8
authored
8 months ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
chore: clean up .env files
parent
e29f0ac9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
webapp/.env
+4
-4
4 additions, 4 deletions
webapp/.env
webapp/.env.dev
+8
-11
8 additions, 11 deletions
webapp/.env.dev
webapp/.env.prod
+5
-5
5 additions, 5 deletions
webapp/.env.prod
webapp/.env.test
+17
-9
17 additions, 9 deletions
webapp/.env.test
with
34 additions
and
29 deletions
webapp/.env
+
4
−
4
View file @
338aafe8
#########################################################################################################
#########################################################################################################
##############
# 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).
...
...
This diff is collapsed.
Click to expand it.
webapp/.env.dev
+
8
−
11
View file @
338aafe8
#########################################################################################################
#######################################################################################################################
# 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
#######################################################################################################################
#######################################################################################################################
#######################################################################################################################
...
...
This diff is collapsed.
Click to expand it.
webapp/.env.prod
+
5
−
5
View file @
338aafe8
#########################################################################################################
#########################################################################################################
##############
# 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
...
...
This diff is collapsed.
Click to expand it.
webapp/.env.test
+
17
−
9
View file @
338aafe8
# 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
#######################################################################
#######################################################################################################################
#######################################################################################################################
#######################################################################################################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment