feat(odin): add my website.

This commit is contained in:
CronyAkatsuki 2025-05-14 07:47:57 +02:00
parent ae27826f58
commit 9453b3b351
2 changed files with 30 additions and 0 deletions

View file

@ -6,5 +6,6 @@
./wallabag.nix
./upfast.nix
./miniflux.nix
./website.nix
];
}

View file

@ -0,0 +1,29 @@
{...}: {
virtualisation.oci-containers.containers.website = {
image = "docker.io/nginx:alpine";
autoStart = true;
ports = [
"8001:80"
];
volumes = [
"/var/lib/website:/usr/share/nginx/html:ro"
];
};
services.traefik.dynamicConfigOptions.http = {
services.website.loadBalancer.servers = [
{
url = "http://localhost:8001";
}
];
routers.website = {
rule = "Host(`cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "website";
entrypoints = "websecure";
};
};
}