rename static template file folder to static and update middleware to not show access in logging
This commit is contained in:
@@ -11,7 +11,7 @@ import redis.asyncio as aioredis
|
||||
from quart import Quart
|
||||
import os
|
||||
|
||||
app = Quart(__name__, template_folder="../../templates/side", static_folder="../../templates/files")
|
||||
app = Quart(__name__, template_folder="../../templates/side", static_folder="../../templates/static")
|
||||
app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 1024
|
||||
|
||||
app.secret_key = SECRET_KEY
|
||||
|
||||
@@ -17,7 +17,7 @@ async def custom_middleware():
|
||||
# Skip allowed IPs or non-critical assets
|
||||
if (
|
||||
"favicon" in path
|
||||
or "files" in path
|
||||
or "static" in path
|
||||
):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user