settings: Derive RUNNING_INSIDE_TORNADO based on sys.argv.

This allows it to be used at application startup time.
This commit is contained in:
Alex Vandiver
2025-05-02 18:52:33 +00:00
committed by Tim Abbott
parent 8bb0768c4b
commit 169daa31a0
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,6 @@ from typing_extensions import override
from zerver.lib.management import ZulipBaseCommand
settings.RUNNING_INSIDE_TORNADO = True
if settings.PRODUCTION:
settings.SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")