Compare commits
5 commits
18a45773bb
...
734e30bc45
Author | SHA1 | Date | |
---|---|---|---|
734e30bc45 | |||
70221186b2 | |||
f6803029fd | |||
a5f955ff08 | |||
bbe481be8a |
1 changed files with 15 additions and 6 deletions
|
@ -8,6 +8,8 @@
|
|||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.modules.system.services.grafana;
|
||||
domain = "info.copeberg.org";
|
||||
port = 4021;
|
||||
in {
|
||||
options.modules.system.services.grafana.enable = mkEnableOption "Grafana, a graphing service";
|
||||
|
||||
|
@ -20,16 +22,13 @@ in {
|
|||
enable = true;
|
||||
package = pkgs.grafana;
|
||||
|
||||
port = 4021;
|
||||
domain = "localhost";
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 4021;
|
||||
http_port = port;
|
||||
|
||||
root_url = "https://info.copeberg.org";
|
||||
domain = "info.copeberg.org";
|
||||
root_url = "https://${domain}";
|
||||
domain = domain;
|
||||
enforce_domain = true;
|
||||
};
|
||||
database = {
|
||||
|
@ -48,5 +47,15 @@ in {
|
|||
# users.allow_signup = false;
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.${domain} = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue