forked from poz/niksos
grafana and change matrix domain
This commit is contained in:
parent
e2a5a12a43
commit
710a6c4de4
3 changed files with 28 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
|
@ -2,6 +2,7 @@ _: {
|
|||
imports = [
|
||||
./conduit.nix
|
||||
./configuration.nix
|
||||
./grafana.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
||||
|
|
26
hosts/chmura/grafana.nix
Normal file
26
hosts/chmura/grafana.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in a new issue