summaryrefslogtreecommitdiffstats
path: root/doc/Running-behind-caddy.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/Running-behind-caddy.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/Running-behind-caddy.md b/doc/Running-behind-caddy.md
new file mode 100644
index 00000000..2fc3fd63
--- /dev/null
+++ b/doc/Running-behind-caddy.md
@@ -0,0 +1,27 @@
+# netdata via Caddy
+
+To run netdata via [Caddy's proxying,](https://caddyserver.com/docs/proxy) set your Caddyfile up like this:
+
+```
+netdata.domain.tld {
+ proxy / localhost:19999
+}
+```
+
+Other directives can be added between the curly brackets as needed.
+
+To run netdata in a subfolder:
+
+```
+netdata.domain.tld {
+ proxy /netdata/ localhost:19999 {
+ without /netdata
+ }
+}
+```
+
+## limit direct access to netdata
+
+You would also need to instruct netdata to listen only to `127.0.0.1` or `::1`.
+
+To limit access to netdata only from localhost, set `bind socket to IP = 127.0.0.1` or `bind socket to IP = ::1` in `/etc/netdata/netdata.conf`.