Last active
January 2, 2019 03:24
-
-
Save vub/5f0fd34bfd47e7e7b0cabf95813a606d to your computer and use it in GitHub Desktop.
Setup Grafana
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grafana | |
docker run --name=grafana -p 3100:3000 grafana/grafana | |
- gpu_monitor | |
kibana | |
elastic search |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
access_log off; | |
server_name grafana.example.com www.grafana.example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name grafana.example.com www.grafana.example.com; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/example.com.crt; | |
ssl_certificate_key /etc/nginx/ssl/example.com.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
location / { | |
proxy_pass http://127.0.0.1:3100; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_read_timeout 600; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service nginx start | |
sudo systemctl restart nginx.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment