diff --git a/docs/rolereference.rst b/docs/rolereference.rst index 6fb9da20f2964a33a342d6ae54d52b268029e5cb..b97e94c5798904a1f92822768431580540e240cd 100644 --- a/docs/rolereference.rst +++ b/docs/rolereference.rst @@ -1460,6 +1460,11 @@ Parameters be served with ``Strict-Transport-Security`` header with value of ``max-age=31536000; includeSubDomains``. +**environment_variables** (dict, optional, ``{}``) + Specify additional environment variables that should be set for running the + service. Environment variables will be set in both the systemd service and for + the application's administrator user (when logged in as one). + **fqdn** (string, mandatory) Fully-qualified domain name where the website is reachable. This value is used for calculating the user/group name for dedicated website user, as well as @@ -1536,6 +1541,8 @@ running a bare Django project): virtualenv_packages: - django wsgi_application: django_example_com.wsgi:application + environment_variables: + DJANGO_SETTINGS_MODULE: "django_example_com.settings.production" https_tls_key: "{{ lookup('file', inventory_dir + '/tls/wsgi.example.com_https.key') }}" https_tls_certificate: "{{ lookup('file', inventory_dir + '/tls/wsgi.example.com_https.pem') }}" futures_version: 3.0.5