From 6ce29a7f8a6b4008f4fafd6bd2ce54c5891514af Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 16 Nov 2021 12:19:40 -0500 Subject: [PATCH] Docs: Add guidelines for running grafana behind proxy on RPM-based Linux (#41710) (#41766) * Docs: Add Centos guidelines for running grafana behind proxy * Apply suggestions from code review Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> (cherry picked from commit 11ec1ddd7e0c0868ae83fc24021f60ebf646d2fd) Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> --- docs/sources/installation/rpm.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/sources/installation/rpm.md b/docs/sources/installation/rpm.md index 870d7935d74..b4a94f1728f 100755 --- a/docs/sources/installation/rpm.md +++ b/docs/sources/installation/rpm.md @@ -172,6 +172,30 @@ sudo systemctl enable grafana-server {{< docs/shared "systemd/bind-net-capabilities.md" >}} +#### Serving Grafana behind a proxy + +When serving Grafana behind a proxy, you need to configure the `http_proxy` and `https_proxy` environment variables. + +##### Centos 6 + +If you are on Centos 6, add the following lines to the `/etc/sysconfig/grafana-server` file. + +``` +export no_proxy=internal.domain,127.0.0.1 +export http_proxy=http://proxy.domain:3128/ +export https_proxy=http://proxy.domain:3128/ +``` + +##### Centos 7 + +If you are on Centos 7, add the following lines to the `/etc/sysconfig/grafana-server` file. + +``` +http_proxy=http://proxy.domain:3128/ +https_proxy=http://proxy.domain:3128/ +no_proxy=internal.domain,127.0.0.1 +``` + ### Start the server with init.d To start the service and verify that the service has started: