Skip to content

Caddy 2 Reverse Proxy

Setting up Caddy as a reverse proxy is very simple. Here are two configuration examples.

Here is an example configuration file if your notifly instance is running on port 1245

notifly.example.com {
# Set the port you are using in notifly
# WebSocket support, proxy headers, etc. are enabled by default
reverse_proxy localhost:1245
}

Caddy автоматически развёртывает сертификаты SSL из Let’s Encrypt для вашего домена. Если вы хотите явно отключить шифрование TLS, добавьте к имени сервера префикс http://.

Here’s the equivalent configuration example above, but running on a subpath.

example.com {
route /notifly/* {
uri strip_prefix /notifly
# Set the port you are using in notifly
reverse_proxy localhost:1245
}
redir /notifly /notifly/
}