summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Salazar <git.psalazar@recursor.net>2021-03-26 18:30:32 +0000
committerGitHub <noreply@github.com>2021-03-26 14:30:32 -0400
commit12b3e5fd62ec7e6703a48f359c7bcf7a2b0a5198 (patch)
tree2ac3437fe8c07244295337da1074802473c4c586
parent46af7de4252a139c1f4ba3369f0b2f76194657e1 (diff)
Update syntax for Caddy v2 (#10823)
-rw-r--r--docs/Running-behind-caddy.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/Running-behind-caddy.md b/docs/Running-behind-caddy.md
index c1d57504ad..a20fd0535b 100644
--- a/docs/Running-behind-caddy.md
+++ b/docs/Running-behind-caddy.md
@@ -5,11 +5,11 @@ custom_edit_url: https://github.com/netdata/netdata/edit/master/docs/Running-beh
# Netdata via Caddy
-To run Netdata via [Caddy's proxying,](https://caddyserver.com/docs/proxy) set your Caddyfile up like this:
+To run Netdata via [Caddy v2 proxying,](https://caddyserver.com/docs/caddyfile/directives/reverse_proxy) set your Caddyfile up like this:
```caddyfile
netdata.domain.tld {
- proxy / localhost:19999
+ reverse_proxy localhost:19999
}
```
@@ -19,8 +19,8 @@ To run Netdata in a subfolder:
```caddyfile
netdata.domain.tld {
- proxy /netdata/ localhost:19999 {
- without /netdata
+ handle_path /netdata/* {
+ reverse_proxy localhost:19999
}
}
```