put grafana behind a rp

This commit is contained in:
histausse 2021-09-22 16:54:36 +02:00
parent 82bf5161cb
commit bf386501d0
Signed by: histausse
GPG key ID: 67486F107F62E9E9
3 changed files with 9 additions and 7 deletions

View file

@ -1,10 +1,11 @@
---
reverse_proxy_sites:
- {from: wiki.pains-perdus.fr, to: "https://azerty.fil.sand.auro.re:2443"}
- {from: hindley.pains-perdus.fr, to: "http://127.0.0.1:5000"}
- {from: gitea.deso-palaiseau.fr, to: "https://azerty.fil.sand.auro.re:8443"}
- {from: openid.deso-palaiseau.fr, to: "https://azerty.fil.sand.auro.re:7443"}
- {from: wiki.pains-perdus.fr, to: "https://azerty.fil.sand.auro.re:2443"}
- {from: hindley.pains-perdus.fr, to: "http://127.0.0.1:5000"}
- {from: gitea.deso-palaiseau.fr, to: "https://azerty.fil.sand.auro.re:8443"}
- {from: openid.deso-palaiseau.fr, to: "https://azerty.fil.sand.auro.re:7443"}
- {from: "{{ grafana_domain_name }}", to: "http://127.0.0.1:3000"}
sharing_sites:
- {from: share.deso-palaiseau.fr, folder: "/home/histausse/www", user: histausse, group: histausse}

View file

@ -7,3 +7,4 @@ dns_resolve_server: 1.1.1.1
appointed_prometheus_server: hindley
grafana_admin_password: "{{ vault_grafana_admin_password }}"
grafana_domain_name: monitoring.deso-palaiseau.fr

View file

@ -40,7 +40,7 @@ http_addr = 127.0.0.1
;http_port = 3000
# The public facing domain name used to access grafana from a browser
;domain = localhost
domain = {{ grafana_domain_name }}
# Redirect to correct domain if host header does not match domain
# Prevents DNS rebinding attacks
@ -48,7 +48,7 @@ http_addr = 127.0.0.1
# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = %(protocol)s://%(domain)s/
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
;serve_from_sub_path = false
@ -60,7 +60,7 @@ router_logging = true
;static_root_path = public
# enable gzip
;enable_gzip = false
enable_gzip = true
# https certs & key file
;cert_file =