Compare commits
5 commits
734e30bc45
...
18a45773bb
Author | SHA1 | Date | |
---|---|---|---|
18a45773bb | |||
92ba05f9cf | |||
00fa8006c0 | |||
60627d3594 | |||
5cb6dac8ea |
1 changed files with 6 additions and 15 deletions
|
@ -8,8 +8,6 @@
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.system.services.grafana;
|
cfg = config.modules.system.services.grafana;
|
||||||
domain = "info.copeberg.org";
|
|
||||||
port = 4021;
|
|
||||||
in {
|
in {
|
||||||
options.modules.system.services.grafana.enable = mkEnableOption "Grafana, a graphing service";
|
options.modules.system.services.grafana.enable = mkEnableOption "Grafana, a graphing service";
|
||||||
|
|
||||||
|
@ -22,13 +20,16 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.grafana;
|
package = pkgs.grafana;
|
||||||
|
|
||||||
|
port = 4021;
|
||||||
|
domain = "localhost";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
http_addr = "127.0.0.1";
|
http_addr = "127.0.0.1";
|
||||||
http_port = port;
|
http_port = 4021;
|
||||||
|
|
||||||
root_url = "https://${domain}";
|
root_url = "https://info.copeberg.org";
|
||||||
domain = domain;
|
domain = "info.copeberg.org";
|
||||||
enforce_domain = true;
|
enforce_domain = true;
|
||||||
};
|
};
|
||||||
database = {
|
database = {
|
||||||
|
@ -47,15 +48,5 @@ in {
|
||||||
# users.allow_signup = false;
|
# 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