Add external database for grafana
This commit is contained in:
parent
fefb6ce762
commit
74e0b67828
2 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
system = "x86_64-linux";
|
||||
username = "tbarnouin";
|
||||
proxy_host = "192.168.1.40";
|
||||
pgsql_host = "192.168.1.13";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
|
|
@ -23,6 +23,13 @@ in
|
|||
root_url = "https://logs.le43.eu";
|
||||
serve_from_sub_path = false;
|
||||
};
|
||||
database = {
|
||||
type = "postgres";
|
||||
host = "${cfg.pgsql_host}:5432";
|
||||
name = "grafana";
|
||||
user = "grafana";
|
||||
password = "\$__file{/run/secrets/grafana/database_secret}";
|
||||
};
|
||||
auth = {
|
||||
signout_redirect_url = https://authentik.le43.eu/application/o/grafana/end-session/;
|
||||
oauth_auto_login = true;
|
||||
|
|
Loading…
Reference in a new issue