1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-17 01:32:29 +02:00

Added checks to SETUP to make sure JavaScript is enabled and that all JS files could be loaded when loading the site page.

The setup site malfunctions if this is not the case.
Regular expression for checking the Mailu storage path was invalid.
This commit is contained in:
Dimitri Huisman
2023-10-29 12:55:40 +00:00
parent 4e351e1dd4
commit 67d11c47c8
8 changed files with 40 additions and 12 deletions

View File

@ -10,12 +10,14 @@ import random
import ipaddress
import hashlib
import time
from flask_bootstrap import StaticCDN
version = os.getenv("this_version", "master")
static_url_path = "/" + version + "/static"
app = flask.Flask(__name__, static_url_path=static_url_path)
flask_bootstrap.Bootstrap(app)
# Load our jQuery. Do not use jQuery 1.
app.extensions['bootstrap']['cdns']['jquery'] = StaticCDN()
db = redis.StrictRedis(host='redis', port=6379, db=0)