Ver Fonte

script_name: add config option, fixes https://github.com/Kozea/Radicale/issues/1275

Peter Bieringer há 11 meses atrás
pai
commit
68f0eafe7d
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      radicale/config.py

+ 4 - 0
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",