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,7 +69,6 @@ DEFAULT_CONFIG = {
'RECAPTCHA_PRIVATE_KEY': '', 'RECAPTCHA_PRIVATE_KEY': '',
'LOGO_URL': None, 'LOGO_URL': None,
'LOGO_BACKGROUND': None, 'LOGO_BACKGROUND': None,
'API': False,
# Advanced settings # Advanced settings
'API': False, 'API': False,
'WEB_API': '/api', 'WEB_API': '/api',

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

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

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

Loading…
Cancel
Save