add: load backup

This commit is contained in:
h z
2025-03-05 17:33:17 +00:00
parent 26b64f8c15
commit acb1e2260f
4 changed files with 183 additions and 12 deletions

19
app.py
View File

@@ -1,4 +1,3 @@
# app.py
from pprint import pprint
from logging_handlers.DatabaseLogHandler import DatabaseLogHandler
from api import limiter
@@ -26,13 +25,17 @@ except Exception as e:
app = Flask(__name__)
app.secret_key = env_provider.SESSION_SECRET_KEY
CORS(app, resources={r"/api/*": {"origins": [
env_provider.KC_HOST,
env_provider.FRONTEND_HOST,
r"https?://localhost:\d+",
r"https?://127\.0\.0\.1:\d+",
r"https?://localhost"
]}},
CORS(app, resources={
r"/api/*": {
"origins": [
env_provider.KC_HOST,
env_provider.FRONTEND_HOST,
r"https?://localhost:\d+",
r"https?://127\.0\.0\.1:\d+",
r"https?://localhost"
]
}
},
expose_headers=['Content-Disposition']
)