[blazestar.net;havenisms.com] Moves them to the new static-site setup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user