Roxedus

grafana

Jan 31st, 2018
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.81 KB | None | 0 0
  1. upstream grafana {
  2.     # the grafana server
  3.     server 10.0.0.11:3000;
  4.     keepalive 64;
  5. }
  6.  
  7. server {
  8.     listen 80;
  9.     server_name .grafana.punny.no .grafana.domain.no;
  10.     return 301 https://$host$request_uri;
  11. }
  12.  
  13. server {
  14.     listen 443 ssl;
  15.     include /config/rost-auth-admin.conf;
  16.     include /config/php.conf;
  17.  
  18.     # the virtual host name of this
  19.     server_name .grafana.punny.no .grafana.domain.no;
  20.  
  21.     location / {
  22.         proxy_pass http://grafana;
  23.         proxy_hide_header X-Frame-Options;
  24.         proxy_set_header X-Forwarded-Host $host;
  25.         proxy_set_header X-Forwarded-Server $host;
  26.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27.         proxy_http_version 1.1;
  28.         proxy_pass_request_headers on;
  29.         proxy_set_header Connection "keep-alive";
  30.         proxy_store off;
  31.     }
  32. }
Advertisement