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

This commit is contained in:
2025-03-02 17:45:20 -08:00
parent bc124405ae
commit 79868668bb
2 changed files with 19 additions and 0 deletions

View File

@@ -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"
];
};
};
}