-
Notifications
You must be signed in to change notification settings - Fork 3
Environment variable
Philippe Bareille edited this page Jan 16, 2025
·
2 revisions
Copy the external.env
file as .env
in the root directory. There you should assign values for
environment variables to customize your instance, such as language preferences, external database connection information...
These variables should be set manually.
Here is the list of variables (key) that need to be set in the .env
file (key with = as separator):
-
LUTECE_DEFAULT_LANG
: default language set for the front office and editorial content -
TZ
: timezone to set to all servers : i.e. "Europe/Paris", "Africa/Accra", "America/New_York", "Asia/Singapore" -
LUTECE_AVAILABLE_LANG
: list of the available languages to switch to in the back office only: coma-separated list with no spaces. core features currently support: en, fi, fr, pt, se, nl, de and partly available in: es, dk, hu, it, ar. Business features support: en, fr and partly available in: fi, pt, se, nl, de, es, dk, hu, it, ar -
LUTECE_DB_USER
: Set the user for the database connection -
LUTECE_DB_PWD
: Set the password for the database connection -
LUTECE_DB_NAME
: Set db name (schema) where your lutece tables are created -
LUTECE_DB_HOST
: Set the mysql host where your database is hosted -
LUTECE_DB_PORT
: Set the mysql port (if no set use by default 3306) -
LUTECE_MAIL_HOST
: Set the SMTP host -
LUTECE_MAIL_PORT
: Set the SMTP port -
LUTECE_MAIL_USER
: Set user authentification if your SMTP proivder required an authent -
LUTECE_MAIL_PWD
: Set password authentification if your SMTP proivder required an authent -
KEYCLOAK_USER
: Set user admin for keycloak (default is admin) -
KEYCLOAK_PASSWORD
: Set admin password (default admin1234) -
DB_VENDOR
: db type for keycloak (default mysql) -
DB_ADDR
: db host (by default we use db container) -
DB_DATABASE
: database name for keycloak (default keycloak) -
DB_USER
: database user for keycloak -
DB_PASSWORD
: database password for keycloak