[public] Sets up default static website for both domains.

This commit is contained in:
Periodic committed 2025-03-02 17:45:30 -08:00
1 parent bc124405ae
commit 79868668bb
2 files changed
+19

No files matched your search

@@ -0,0 +1,18 @@
# Define a very simple webserver to act as a default homepage.
{ pkgs, ... }:
{
virtualisation.oci-containers.containers = {
public-homepage = {
image = "nginx:alpine";
autoStart = true;
volumes = [
"/tank/web/static:/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"
];
};
};
}