2024-10-28 23:52:16 +05:30
|
|
|
_:
|
|
|
|
let
|
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat tlsAcmeDnsChallenge;
|
|
|
|
in
|
|
|
|
{
|
2024-07-18 22:06:11 +05:30
|
|
|
imports = [
|
2024-10-27 18:34:32 +05:30
|
|
|
./blocky.nix
|
2024-10-27 18:37:28 +05:30
|
|
|
./prometheus.nix
|
2024-10-27 18:36:30 +05:30
|
|
|
./loki
|
2024-07-18 23:15:30 +05:30
|
|
|
../../../shared/prometheus-exporters.nix
|
2024-07-21 19:10:11 +05:30
|
|
|
../../../shared/promtail.nix
|
2024-07-18 22:06:11 +05:30
|
|
|
];
|
2024-10-28 23:52:16 +05:30
|
|
|
services.caddy = {
|
|
|
|
virtualHosts = {
|
|
|
|
"gateway.labs.adtya.xyz" = {
|
|
|
|
inherit logFormat;
|
|
|
|
extraConfig = ''
|
|
|
|
${tlsAcmeDnsChallenge}
|
|
|
|
reverse_proxy 192.168.0.1:80
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"ap1.labs.adtya.xyz" = {
|
|
|
|
inherit logFormat;
|
|
|
|
extraConfig = ''
|
|
|
|
${tlsAcmeDnsChallenge}
|
|
|
|
reverse_proxy 192.168.1.1:80
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"ap2.labs.adtya.xyz" = {
|
|
|
|
inherit logFormat;
|
|
|
|
extraConfig = ''
|
|
|
|
${tlsAcmeDnsChallenge}
|
|
|
|
reverse_proxy 192.168.1.2:80
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"switch.labs.adtya.xyz" = {
|
|
|
|
inherit logFormat;
|
|
|
|
extraConfig = ''
|
|
|
|
${tlsAcmeDnsChallenge}
|
|
|
|
reverse_proxy 192.168.1.3:80
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-03 17:03:34 +05:30
|
|
|
}
|