python3/test/micropipenv-requirements-test-app/app.py
Lumir Balhar b0910418b6 Update from upstream github repo
- pipenv is locked to older stable version
- ENV for micropipenv
- no python-virtualenv package
- updated documentation
2020-06-02 09:21:09 +02:00

14 lines
416 B
Python

import os
import mod_wsgi.server
mod_wsgi.server.start(
'--log-to-terminal',
'--port', '8080',
'--trust-proxy-header', 'X-Forwarded-For',
'--trust-proxy-header', 'X-Forwarded-Port',
'--trust-proxy-header', 'X-Forwarded-Proto',
'--processes', os.environ.get('MOD_WSGI_PROCESSES', '1'),
'--threads', os.environ.get('MOD_WSGI_THREADS', '5'),
'--application-type', 'module',
'--entry-point', 'wsgi'
)