1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-04 18:22:26 +00:00

Add proxy_base_prefix option to help run in a subdir behind a proxy

I have a setup where Radicale is running as the normal process, and
nginx is acting as proxy for Radicale for requests under /radicale/.
This means that all requests to nginx that go to /radicale/ are sent to
a radicale server that expects requests coming at /.

Obviously, all the href need to have the /radicale/ prefix to have
things work. So a new option proxy_base_prefix is added to allow having
such a setup.

All href that are sent in the replies will have the proxy_base_prefix
prepended.
This commit is contained in:
Vincent Untz 2013-03-18 18:14:53 +01:00
parent 0dbf71f57f
commit 74590cfd0c
3 changed files with 31 additions and 13 deletions

View file

@ -46,7 +46,8 @@ INITIAL_CONFIG = {
"certificate": "/etc/apache2/ssl/server.crt",
"key": "/etc/apache2/ssl/server.key",
"dns_lookup": "True",
"base_prefix": ""},
"base_prefix": "",
"proxy_base_prefix": ""},
"encoding": {
"request": "utf-8",
"stock": "utf-8"},