Nixos-Configuration/configurations/nixos/caddy-tofu/default.nix
Jermeiah S fdd6fae02e
Some checks failed
/ check (push) Successful in 1m17s
/ deploy (push) Failing after 53s
feature: configured caddy [deploy]
2025-06-29 11:26:40 -04:00

43 lines
761 B
Nix

{
flake,
modulesPath,
config,
...
}:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix"
];
services.caddy = {
enable = true;
extraConfig = ''
git.skdevstudios.com {
reverse_proxy forgejo.local:3000
}
tofu.skdevstudios.com {
reverse_proxy tofu.local:9000
}
# :3306 {
# reverse_proxy 10.173.91.154:3306
# }
# :3001 {
# reverse_proxy 127.0.0.1:8889
# }
# :8096 {
# reverse_proxy 10.173.91.220:8096
# }
'';
};
networking = {
hostName = "caddy-tofu";
};
environment.systemPackages = [
];
system.stateVersion = "25.05";
}