[blazestar.net;havenisms.com] Moves them to the new static-site setup
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Static websites
|
# Static websites
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
inherit (import ./lib.nix config) terakoda;
|
inherit (import ./lib.nix config) terakoda havenisms blazestar;
|
||||||
mkStaticSite = domain: let
|
mkStaticSite = domain: let
|
||||||
cleanDomain = lib.strings.stringAsChars (c: if c == "." then "-" else c) domain;
|
cleanDomain = lib.strings.stringAsChars (c: if c == "." then "-" else c) domain;
|
||||||
in {
|
in {
|
||||||
@@ -23,18 +23,8 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers =
|
||||||
havenisms-homepage = {
|
mkStaticSite terakoda //
|
||||||
image = "nginx:alpine";
|
mkStaticSite havenisms //
|
||||||
autoStart = true;
|
mkStaticSite blazestar;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user