configuration.nix/hosts/rico1/services/apps/default.nix

47 lines
1 KiB
Nix
Raw Normal View History

_:
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-29 00:41:37 +05:30
./redis.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
];
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
}