[blazestar.net;havenisms.com] Moves them to the new static-site setup

This commit is contained in:
2025-04-23 17:08:58 -07:00
parent 4a49cd3dfe
commit 0367ecd919

View File

@@ -1,7 +1,7 @@
# Static websites
{ lib, config, ... }:
let
inherit (import ./lib.nix config) terakoda;
inherit (import ./lib.nix config) terakoda havenisms blazestar;
mkStaticSite = domain: let
cleanDomain = lib.strings.stringAsChars (c: if c == "." then "-" else c) domain;
in {
@@ -23,18 +23,8 @@ let
};
};
in {
virtualisation.oci-containers.containers = {
havenisms-homepage = {
image = "nginx:alpine";
autoStart = true;
volumes = [
"/tank/web/havenisms.com/public:/usr/share/nginx/html:ro"
];
extraOptions = [
"-l=traefik.enable=true"
"-l=traefik.http.routers.public.rule=Host(`havenisms.com`) || Host(`blazestar.net`)"
"-l=traefik.http.services.public.loadbalancer.server.port=80"
];
};
} // mkStaticSite terakoda;
virtualisation.oci-containers.containers =
mkStaticSite terakoda //
mkStaticSite havenisms //
mkStaticSite blazestar;
}