feat(odin): add my website.
This commit is contained in:
parent
ae27826f58
commit
9453b3b351
2 changed files with 30 additions and 0 deletions
|
@ -6,5 +6,6 @@
|
|||
./wallabag.nix
|
||||
./upfast.nix
|
||||
./miniflux.nix
|
||||
./website.nix
|
||||
];
|
||||
}
|
||||
|
|
29
modules/servers/odin/website.nix
Normal file
29
modules/servers/odin/website.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue