mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-16 12:04:11 -05:00
* Nginx to caddy (#5) Convert all nginx instances to caddy instances, setup acme as well * matrix implemented
31 lines
641 B
Nix
31 lines
641 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
volumePath = "/overseer/services";
|
|
in {
|
|
systemd.tmpfiles.rules = [
|
|
"d ${volumePath}/actualbudget"
|
|
];
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."budget.wanderingcrow.net".extraConfig = ''
|
|
reverse_proxy http://10.88.0.12
|
|
'';
|
|
};
|
|
virtualisation.oci-containers = {
|
|
backend = "podman";
|
|
containers = {
|
|
"actualbudget" = {
|
|
image = "actualbudget/actual-server:latest";
|
|
volumes = ["${volumePath}/actualbudget:/data"];
|
|
extraOptions = ["--ip=10.88.0.12"];
|
|
environment = {
|
|
ACTUAL_PORT = "80";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|