Add default for WEB_API, re-add flask-restx to deps, remove whitespace

main
Alexander Graf 2 years ago
parent 3cb8358090
commit be40781394
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

@ -69,10 +69,9 @@ DEFAULT_CONFIG = {
'RECAPTCHA_PRIVATE_KEY': '',
'LOGO_URL': None,
'LOGO_BACKGROUND': None,
'API': False,
# Advanced settings
'API' : False,
'WEB_API' : '/api',
'API': False,
'WEB_API': '/api',
'API_TOKEN': None,
'LOG_LEVEL': 'WARNING',
'SESSION_KEY_BITS': 128,

@ -15,6 +15,7 @@ Flask-DebugToolbar
Flask-Login
flask-marshmallow
Flask-Migrate
Flask-RESTX
Flask-SQLAlchemy<3
Flask-WTF
gunicorn

@ -25,6 +25,7 @@ Flask-DebugToolbar==0.13.1
Flask-Login==0.6.2
flask-marshmallow==0.14.0
Flask-Migrate==3.1.0
Flask-RESTX==1.0.3
Flask-SQLAlchemy==2.5.1
Flask-WTF==1.0.1
frozenlist==1.3.1

@ -245,7 +245,7 @@ http {
{% endif %}
{% if API %}
location ~ {{ WEB_API }} {
location ~ {{ WEB_API or '/api' }} {
include /etc/nginx/proxy.conf;
proxy_pass http://$admin;
}

Loading…
Cancel
Save