From fde5ba85a015c0be0dbcfb42631294447fe74faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 1 Apr 2015 17:24:08 +0200 Subject: [PATCH] Docs: Updated configuration docs with port 80 tips --- docs/sources/installation/configuration.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/sources/installation/configuration.md b/docs/sources/installation/configuration.md index b1bf879cc1d..7d30f61dce5 100644 --- a/docs/sources/installation/configuration.md +++ b/docs/sources/installation/configuration.md @@ -42,7 +42,16 @@ Then you can override that using: The ip address to bind to, if empty will bind to all interfaces ### http_port -The port to bind to, defaults to `3000` +The port to bind to, defaults to `3000`. To use port 80 you need to either give the grafana binary permission for example: + +``` +$ sudo setcap 'cap_net_bind_service=+ep' /opt/grafana/current/grafana +``` + +Or redirect port 80 to the grafana port using: +``` +$ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000 +``` ### domain This setting is only used in as a part of the root_url setting (see below). Important if you