Advertisement
Guest User

Untitled

a guest
Apr 8th, 2017
1,207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. [database]
  2. type = postgres
  3. host = 127.0.0.1:5432
  4. name = grafana
  5. user = graphite
  6. password = mypass
  7.  
  8. [server]
  9. protocol = http
  10. http_addr = 127.0.0.1
  11. http_port = 3000
  12. domain = mygrafana.com
  13. enforce_domain = true
  14. root_url = %(protocol)s://%(domain)s/
  15.  
  16. [security]
  17. admin_user = admin
  18. admin_password = mypass
  19. secret_key = something
  20.  
  21. ...
  22. ...
  23.  
  24. <VirtualHost *:80>
  25. ProxyPreserveHost On
  26. ProxyPass / http://127.0.0.1:3000/
  27. ProxyPassReverse / http://127.0.0.1:3000/
  28. ServerName mygraphana.com
  29. </VirtualHost>
  30.  
  31. sudo a2ensite apache2-grafana
  32.  
  33. sudo update-rc.d grafana-server defaults 95 10
  34. sudo service grafana-server start
  35.  
  36. sudo service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement