modules/nixos/monitoring: switch back to separate subdomains
reverts d4343f7ebe
This commit is contained in:
parent
d259ff73c1
commit
3483677fcc
5 changed files with 18 additions and 15 deletions
modules/nixos/monitoring
|
@ -14,16 +14,19 @@
|
|||
owner = "nginx";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."monitoring.nix-community.org" = {
|
||||
locations."/".return = "302 https://nix-community.org/monitoring";
|
||||
locations."/alertmanager/" = {
|
||||
services.nginx.virtualHosts."alertmanager.nix-community.org" = {
|
||||
locations."/" = {
|
||||
basicAuthFile = config.age.secrets.nginx-basic-auth-file.path;
|
||||
proxyPass = "http://localhost:9093/";
|
||||
};
|
||||
locations."/grafana/" = {
|
||||
};
|
||||
services.nginx.virtualHosts."grafana.nix-community.org" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3000/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
locations."/prometheus/".proxyPass = "http://localhost:9090/";
|
||||
};
|
||||
services.nginx.virtualHosts."prometheus.nix-community.org" = {
|
||||
locations."/".proxyPass = "http://localhost:9090/";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue