2023-07-15 18:28:37 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-07-15 23:41:03 +02:00
|
|
|
services.grafana = {
|
|
|
|
enable = true;
|
|
|
|
settings.server = {
|
|
|
|
http_addr = "127.0.0.1";
|
|
|
|
http_port = 3000;
|
|
|
|
domain = "jacekpoz.pl";
|
|
|
|
root_url = "https://d.jacekpoz.pl";
|
|
|
|
};
|
2023-07-15 18:28:37 +02:00
|
|
|
};
|
|
|
|
|
2023-07-15 23:41:03 +02:00
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."d.jacekpoz.pl".extraConfig = ''
|
|
|
|
reverse_proxy * localhost:3000
|
|
|
|
'';
|
|
|
|
};
|
2023-07-15 18:28:37 +02:00
|
|
|
|
2023-07-15 23:41:03 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 3000 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 3000 ];
|
2023-07-15 18:28:37 +02:00
|
|
|
}
|