Setup hub
This commit is contained in:
parent
0c003a2801
commit
afe2dee9e6
2 changed files with 25 additions and 0 deletions
24
nixos/machines/driftwood/containers/hub.nix
Normal file
24
nixos/machines/driftwood/containers/hub.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -40,6 +40,7 @@
|
|||
(import ../../modules/ssh.nix)
|
||||
(import ../../modules/tailscale.nix)
|
||||
(import ./containers/conduit.nix)
|
||||
(import ./containers/hub.nix)
|
||||
(import ./headscale.nix)
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue