Remove PyWSGI and move to Flask server
Gevent was completely failure. The API would block during large file uploads with no obvious solutions beyond "use gunicorn", which is not suited to this. I originally had this working with the Flask "debug" server, so just move to using that all the time. SSL is added using a custom context with the OpenSSL library, so include that as a dependency.
This commit is contained in:
@@ -124,6 +124,8 @@ app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://{}:{}@{}:{}/{}'.format(con
|
||||
|
||||
if config['debug']:
|
||||
app.config['DEBUG'] = True
|
||||
else:
|
||||
app.config['DEBUG'] = False
|
||||
|
||||
if config['auth_enabled']:
|
||||
app.config["SECRET_KEY"] = config['auth_secret_key']
|
||||
|
Reference in New Issue
Block a user