Add Grafana config
This commit is contained in:
parent
142af44bbf
commit
5a3c25167c
3 changed files with 49 additions and 0 deletions
3
src/Grafana/.install.fish
Executable file
3
src/Grafana/.install.fish
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
read -P "Install main config [yN] ? " inst
|
||||||
|
test $inst = "y"; and sudo install -o grafana -g grafana -m o=,g=r,u=rw -b -D app.ini /etc/forgejo/app.ini
|
2
src/Grafana/README.md
Normal file
2
src/Grafana/README.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Grafana
|
||||||
|
Install to `/etc`.
|
44
src/Grafana/grafana.ini
Normal file
44
src/Grafana/grafana.ini
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
[server]
|
||||||
|
protocol = socket
|
||||||
|
domain = dash.edgarpierre.fr
|
||||||
|
enforce_domain = true
|
||||||
|
socket = /run/grafana/grafana.socket
|
||||||
|
|
||||||
|
[database]
|
||||||
|
type = postgres
|
||||||
|
host = /run/postgresql
|
||||||
|
user = grafana
|
||||||
|
|
||||||
|
[analytics]
|
||||||
|
reporting_enabled = false
|
||||||
|
check_for_updates = false
|
||||||
|
check_for_plugin_updates = false
|
||||||
|
|
||||||
|
[security]
|
||||||
|
disable_gravatar = true
|
||||||
|
cookie_secure = true
|
||||||
|
cookie_samesite = strict
|
||||||
|
strict_transport_security = true
|
||||||
|
strict_transport_security_preload = true
|
||||||
|
strict_transport_security_subdomains = true
|
||||||
|
|
||||||
|
[snapshots]
|
||||||
|
enabled = false
|
||||||
|
external_enabled = false
|
||||||
|
|
||||||
|
[users]
|
||||||
|
allow_sign_up = false
|
||||||
|
verify_email_enabled = true
|
||||||
|
default_language = fr-FR
|
||||||
|
|
||||||
|
[smtp]
|
||||||
|
enabled = true
|
||||||
|
host = smtp.edgarpierre.fr:465
|
||||||
|
from_address = grafana@edgarpierre.fr
|
||||||
|
user = grafana
|
||||||
|
password = $$$
|
||||||
|
|
||||||
|
[emails]
|
||||||
|
welcome_email_on_sign_up = true
|
||||||
|
templates_pattern = emails/*.txt
|
||||||
|
content_types = text/plain
|
Loading…
Reference in a new issue