Skip to content

Instantly share code, notes, and snippets.

@lgunsch
Created March 9, 2016 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgunsch/48c5ad3e6656e93fbf53 to your computer and use it in GitHub Desktop.
Save lgunsch/48c5ad3e6656e93fbf53 to your computer and use it in GitHub Desktop.
Multiple env settings for Uwsgi
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