[public] Sets up default static website for both domains.
This commit is contained in:
18
system/hosts/mcp/containers/public-homepage.nix
Normal file
18
system/hosts/mcp/containers/public-homepage.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user