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

3
config
View File

@ -29,6 +29,9 @@ key = /etc/apache2/ssl/server.key
dns_lookup = True
# base URL if / is not the CalDAV root. If set, must start with /
base_prefix =
# base URL if Radicale is running with / as CalDAV root, but in a subdir behind a proxy (like nginx). If set, must start with /
proxy_base_prefix =
[encoding]
# Encoding for responding requests