test: forgejo microVM

This commit is contained in:
Nick 2025-11-06 04:08:29 -06:00
parent 1f4c493072
commit 1376cdbe77
9 changed files with 245 additions and 157 deletions

View file

@ -164,6 +164,12 @@ in
source = service.ssl.path;
tag = "acme_certs";
}
{
mountPoint = "/run/secrets";
proto = "virtiofs";
source = "/var/lib/secrets";
tag = "run_secrets";
}
];
forwardPorts = [
@ -179,6 +185,11 @@ in
};
};
systemd.tmpfiles.rules = [
"d ${service.mntPaths.path0} 0755 root root -"
"d ${service.secretPaths.path0} 0755 root root -"
];
services.caddy.virtualHosts."${host}" = {
extraConfig = ''
reverse_proxy ${service.interface.ip}:${toString service.ports.port0}