feat: prometheus + grafana
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{config, ...}: let
|
||||
serviceName = "azess";
|
||||
servicePort = config.m3ta.ports.get serviceName;
|
||||
in {
|
||||
services.azess = {
|
||||
enable = true;
|
||||
host = "127.0.0.1";
|
||||
port = servicePort;
|
||||
workers = 4;
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.${serviceName}.loadBalancer.servers = [
|
||||
{url = "http://localhost:${toString servicePort}/";}
|
||||
];
|
||||
|
||||
routers.${serviceName} = {
|
||||
rule = "Host(`azess.l.az-gruppe.com`)";
|
||||
tls = {
|
||||
certResolver = "ionos";
|
||||
};
|
||||
service = serviceName;
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user