Skip to content

Commit

Permalink
docs: Add Caddyfile to reverse proxies setup (#1580)
Browse files Browse the repository at this point in the history
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1580
Co-authored-by: cr1xus <christoearth@gmail.com>
Co-committed-by: cr1xus <christoearth@gmail.com>
  • Loading branch information
cr1xu5 authored and kolaente committed Aug 21, 2023
1 parent 2081852 commit 665c046
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/content/doc/setup/reverse-proxies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 >}}

0 comments on commit 665c046

Please sign in to comment.