2024-06-29 17:52:32 +05:30
|
|
|
_: {
|
|
|
|
imports = [
|
2024-07-18 22:05:29 +05:30
|
|
|
./apps
|
2024-06-29 17:52:32 +05:30
|
|
|
./btrfs.nix
|
|
|
|
./ssh.nix
|
2024-07-18 22:05:29 +05:30
|
|
|
../../shared/caddy.nix
|
|
|
|
../../shared/frp.nix
|
2024-06-29 17:52:32 +05:30
|
|
|
];
|
2024-07-18 22:05:29 +05:30
|
|
|
|
|
|
|
services.caddy = {
|
2024-08-11 20:07:28 +05:30
|
|
|
virtualHosts = {
|
|
|
|
"gateway.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 192.168.0.1:80
|
|
|
|
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"ap1.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 192.168.1.1:80
|
|
|
|
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"ap2.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 192.168.1.2:80
|
|
|
|
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"switch.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 192.168.1.3:80
|
|
|
|
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"frp.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 10.10.10.1:7500
|
|
|
|
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
|
|
|
'';
|
|
|
|
};
|
2024-07-18 22:05:29 +05:30
|
|
|
};
|
|
|
|
};
|
2024-06-29 17:52:32 +05:30
|
|
|
}
|