From 665c04671739fd08e5b24e59749707ce5de83daa Mon Sep 17 00:00:00 2001 From: cr1xus Date: Mon, 21 Aug 2023 11:45:35 +0000 Subject: [PATCH] docs: Add Caddyfile to reverse proxies setup (#1580) Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1580 Co-authored-by: cr1xus Co-committed-by: cr1xus --- docs/content/doc/setup/reverse-proxies.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/content/doc/setup/reverse-proxies.md b/docs/content/doc/setup/reverse-proxies.md index 000e8daf6..1dd0d4556 100644 --- a/docs/content/doc/setup/reverse-proxies.md +++ b/docs/content/doc/setup/reverse-proxies.md @@ -125,3 +125,23 @@ Put the following config in `cat /etc/apache2/sites-available/vikunja.conf`: **Note:** The apache modules `proxy`, `proxy_http` and `rewrite` must be enabled for this. For more details see the [frontend apache configuration]({{< ref "install-frontend.md#apache">}}). + +## Caddy + +{{< highlight conf >}} +vikunja.domainname.tld { + @paths { + path /api/* /.well-known/* /dav/* + } + handle @paths { + reverse_proxy 127.0.0.1:3456 + } + + handle { + encode zstd gzip + root * /var/www/html/vikunja + try_files {path} index.html + file_server + } +} +{{< /highlight >}}