Skip to content

Commit

Permalink
fix: added setting MAX_FORM_MEMORY_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
redimp committed Jan 26, 2025
1 parent 8371cfa commit 95d661e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions otterwiki/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@
SIDEBAR_MENUTREE_IGNORE_CASE=False,
SIDEBAR_MENUTREE_MAXDEPTH="",
SIDEBAR_CUSTOM_MENU="",
COMMIT_MESSAGE="REQUIRED", # OPTIONAL DIISABLED
COMMIT_MESSAGE="REQUIRED", # OPTIONAL DISABLED
GIT_WEB_SERVER=False,
SIDEBAR_SHORTCUTS="home pageindex createpage",
ROBOTS_TXT="allow",
WIKILINK_STYLE="",
MAX_FORM_MEMORY_SIZE=1_000_0000,
)
app.config.from_envvar("OTTERWIKI_SETTINGS", silent=True)

Expand All @@ -69,7 +70,12 @@
for key in app.config:
if key in os.environ:
if type(app.config[key]) == bool:
app.config[key] = os.environ[key].lower() in ["true", "yes"]
app.config[key] = os.environ[key].lower() in [
"true",
"yes",
"on",
"1",
]
else:
app.config[key] = os.environ[key]

Expand Down

0 comments on commit 95d661e

Please sign in to comment.