1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00

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

This commit is contained in:
Alexander Graf 2022-12-27 14:28:25 +01:00
parent 3cb8358090
commit be40781394
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629
4 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

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

View File

@ -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

View File

@ -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;
}