grafana and change matrix domain

This commit is contained in:
jacekpoz 2023-07-15 18:28:37 +02:00
parent e2a5a12a43
commit 710a6c4de4
3 changed files with 28 additions and 1 deletions

View file

@ -19,7 +19,7 @@
services.caddy = {
enable = true;
virtualHosts."matrix.jacekpoz.pl".extraConfig = ''
virtualHosts."m.jacekpoz.pl".extraConfig = ''
reverse_proxy /_matrix/* localhost:6167
'';
virtualHosts."jacekpoz.pl:8448".extraConfig = ''

View file

@ -2,6 +2,7 @@ _: {
imports = [
./conduit.nix
./configuration.nix
./grafana.nix
./hardware-configuration.nix
];
}

26
hosts/chmura/grafana.nix Normal file
View file

@ -0,0 +1,26 @@
{
config,
pkgs,
inputs,
...
}: {
services.grafana = {
enable = true;
settings.server = {
http_addr = "127.0.0.1";
http_port = 3000;
domain = "jacekpoz.pl";
root_url = "https://d.jacekpoz.pl";
};
};
services.caddy = {
enable = true;
virtualHosts."d.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:3000
'';
};
networking.firewall.allowedTCPPorts = [ 3000 ];
networking.firewall.allowedUDPPorts = [ 3000 ];
}