[public] Sets up default static website for both domains.
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
./containers/prometheus.nix
|
./containers/prometheus.nix
|
||||||
./containers/searxng.nix
|
./containers/searxng.nix
|
||||||
./containers/synapse.nix
|
./containers/synapse.nix
|
||||||
|
./containers/public-homepage.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable common container config files in /etc/containers
|
# Enable common container config files in /etc/containers
|
||||||
|
|||||||
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