From 68f0eafe7db4a00153c9f3457433e5c088d79467 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 2 Mar 2025 09:02:10 +0100 Subject: [PATCH] script_name: add config option, fixes https://github.com/Kozea/Radicale/issues/1275 --- radicale/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radicale/config.py b/radicale/config.py index 7c279b32..f13a8d6a 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -187,6 +187,10 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([ "help": "set CA certificate for validating clients", "aliases": ("--certificate-authority",), "type": filepath}), + ("script_name", { + "value": "", + "help": "script name to strip from URI if called by reverse proxy (default taken from HTTP_X_SCRIPT_NAME or SCRIPT_NAME)", + "type": str}), ("_internal_server", { "value": "False", "help": "the internal server is used",