+it-tools
This commit is contained in:
parent
1bede8a9d6
commit
84bf4e5397
@ -121,6 +121,7 @@
|
|||||||
./hosts/AZLT124-L
|
./hosts/AZLT124-L
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
inputs.home-manager-unstable.nixosModules.home-manager
|
inputs.home-manager-unstable.nixosModules.home-manager
|
||||||
|
m3ta-nixpkgs.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
./containers
|
./containers
|
||||||
|
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
./it-tools.nix
|
||||||
./metabase.nix
|
./metabase.nix
|
||||||
./n8n.nix
|
./n8n.nix
|
||||||
./ntfy.nix
|
./ntfy.nix
|
||||||
|
|||||||
45
hosts/AZ-CLD-1/services/it-tools.nix
Normal file
45
hosts/AZ-CLD-1/services/it-tools.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
serviceName = "it-tools";
|
||||||
|
portUtils = import ../../../lib/port-utils.nix {inherit lib;};
|
||||||
|
servicePort = portUtils.getPort serviceName "AZ-CLD-1";
|
||||||
|
in {
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts.${serviceName} = {
|
||||||
|
listen = [
|
||||||
|
{
|
||||||
|
addr = "127.0.0.1";
|
||||||
|
port = servicePort;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
locations."/" = {
|
||||||
|
root = "${pkgs.it-tools}/lib";
|
||||||
|
index = "index.html";
|
||||||
|
tryFiles = "$uri $uri/ /index.html";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Traefik configuration
|
||||||
|
services.traefik.dynamicConfigOptions.http = {
|
||||||
|
services.${serviceName}.loadBalancer.servers = [
|
||||||
|
{
|
||||||
|
url = "http://localhost:${toString servicePort}/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
routers.${serviceName} = {
|
||||||
|
rule = "Host(`tools.az-gruppe.com`)";
|
||||||
|
tls = {
|
||||||
|
certResolver = "ionos";
|
||||||
|
};
|
||||||
|
service = serviceName;
|
||||||
|
entrypoints = "websecure";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -14,6 +14,7 @@
|
|||||||
zammad = 3034;
|
zammad = 3034;
|
||||||
metabase = 3013;
|
metabase = 3013;
|
||||||
ntfy-sh = 3033;
|
ntfy-sh = 3033;
|
||||||
|
it-tools = 3035;
|
||||||
|
|
||||||
# Docker services (3100-3199 range)
|
# Docker services (3100-3199 range)
|
||||||
librechat = 3040;
|
librechat = 3040;
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user