19 lines
520 B
Nix
19 lines
520 B
Nix
# Define a very simple webserver to act as a default homepage.
|
|
{ ... }:
|
|
{
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
}
|