Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ def _csrf_trusted_origins() -> list[str]:
or bool(os.environ.get("PYTEST_CURRENT_TEST"))
or env_bool("SIMPLEAUDIT_TESTING", False)
)
if _TESTING and "SIMPLEAUDIT_OPENWEBUI_SYNC_TTL_S" not in os.environ:
# Tests reuse workspace/user ids across cases, so a per-process sync
# throttle would hand one test another test's cached sync. Both runners
# (pytest and manage.py test) go through here.
OPENWEBUI_SYNC_TTL_S = 0.0
if not (DEBUG or MINIMAL_CONFIG or DEMO_MODE or _TESTING):
# TLS termination and the HTTP→HTTPS redirect are owned by the reverse
# proxy (Cloudflare / nginx / Caddy). Django trusts the proxy via
Expand Down
Loading