.. _installation_env_config: =================================== Environment configuration reference =================================== Open Notificaties can be ran both as a Docker container or directly on a VPS or dedicated server. It relies on other services, such as database and cache backends, which can be configured through environment variables. Available environment variables =============================== .. config-all-params:: Initial configuration --------------------- Open Notificaties supports ``setup_configuration`` management command, which allows configuration via environment variables. All these environment variables are described at :ref:`installation_configuration_cli`. Specifying the environment variables ===================================== There are two strategies to specify the environment variables: * provide them in a ``.env`` file * start the component processes (with uwsgi/gunicorn/celery) in a process manager that defines the environment variables Providing a .env file --------------------- This is the most simple setup and easiest to debug. The ``.env`` file must be at the root of the project - i.e. on the same level as the ``src`` directory ( NOT *in* the ``src`` directory). The syntax is key-value: .. code:: SOME_VAR=some_value OTHER_VAR="quoted_value" Provide the envvars via the process manager ------------------------------------------- If you use a process manager (such as supervisor/systemd), use their techniques to define the envvars. The component will pick them up out of the box.