2021-10-31 17:49:44 +01:00
|
|
|
/{ pkgs, lib, config, ... }: {
|
2020-09-11 22:25:27 +02:00
|
|
|
|
|
|
|
services.metabase = {
|
|
|
|
listen.port = 3040;
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
backup.dirs = [ "/var/lib/metabase" ];
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
statusPage = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"metabase.${config.networking.hostName}.private" = {
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://${config.networking.hostName}.private:${
|
|
|
|
toString config.services.metabase.listen.port
|
|
|
|
}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|