1
Fork 0

Add Grafana config

This commit is contained in:
Edgar P. Burkhart 2023-05-16 16:52:50 +02:00
parent 142af44bbf
commit 5a3c25167c
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
3 changed files with 49 additions and 0 deletions

3
src/Grafana/.install.fish Executable file
View 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
View File

@ -0,0 +1,2 @@
# Grafana
Install to `/etc`.

44
src/Grafana/grafana.ini Normal file
View 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