uWSGI config and bugfix with file extensions

This commit is contained in:
Simon
2018-06-13 14:11:27 -04:00
parent e91572a06f
commit 9bde8cb629
10 changed files with 104 additions and 38 deletions

11
uwsgi.py Normal file
View File

@@ -0,0 +1,11 @@
from app import app
import config
import ssl
if __name__ == '__main__':
if not config.USE_SSL:
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.load_cert_chain('certificates/cert.pem', 'certificates/privkey.pem')
app.run("0.0.0.0", port=12345, ssl_context=context, threaded=True)
else:
app.run("0.0.0.0", port=12345, threaded=True)