-
-
Save lgunsch/48c5ad3e6656e93fbf53 to your computer and use it in GitHub Desktop.
Multiple env settings for Uwsgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uwsgi: | |
lookup: | |
plugins: ['uwsgi-plugin-python3'] | |
# application in the uwsgi server default it will be places in app_available | |
applications: | |
managed: | |
api-melodicmaster.ini: # relative pathname of the application file | |
# may be True, False, or None where True is enabled, False, disabled, and None indicates no action | |
enabled: True | |
# May be a list of config options or None, if None, no vhost file will be managed/templated | |
config: | |
- master: True | |
- uid: 'www-data' | |
- gid: 'www-data' | |
- plugins: 'logfile,python3' | |
- module: project.wsgi:application | |
- chdir: '/var/www/public' | |
- venv: '/usr/share/python/api-project/' | |
- log-master: True | |
- log-reopen: True | |
- env: 'SECRET_KEY=********' | |
- env: DATABASE_NAME=api | |
- env: DATABASE_HOST=db.____.com | |
- env: DATABASE_USER=api_user | |
- env: 'DATABASE_PASSWORD=********' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment