24 lines
466 B
Nix
24 lines
466 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
virtualisation.oci-containers.containers.hub = {
|
|
image = "lscr.io/linuxserver/heimdall:latest";
|
|
volumes = [
|
|
"/var/containers/hub:/config"
|
|
];
|
|
ports = [
|
|
"127.0.0.1:8081:80"
|
|
];
|
|
};
|
|
|
|
services.nginx.virtualHosts."hub.tailscale.stranger.systems" = {
|
|
forceSSL = true;
|
|
useAcmeHost = "wildcard.stranger.systems";
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8081";
|
|
};
|
|
};
|
|
}
|