meow
This commit is contained in:
@@ -14,9 +14,6 @@
|
||||
enable = true;
|
||||
email = "doloroo@proton.me";
|
||||
enableReload = true;
|
||||
virtualHosts."example.org".extraConfig = ''
|
||||
reverse_proxy http://10.25.40.6
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
43
config/modules/services/ddns.nix
Normal file
43
config/modules/services/ddns.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
den,
|
||||
__findFile,
|
||||
modules,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Basic traefik
|
||||
modules.services.provides.ddns = {
|
||||
nixos =
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
ddnsImg = pkgs.dockerTools.pullImage {
|
||||
imageName = "qmcgaw/ddns-updater";
|
||||
imageDigest = "sha256:ee16ab4f6203bf9e5b0925d38a0b4ebf2d9f23771f933cfb2f5a2dbd5f9a2f88";
|
||||
finalImageName = "qmcgaw/ddns-updater";
|
||||
finalImageTag = "latest";
|
||||
sha256 = "sha256-dMCHkvoFaORmGwbIM9io4Vc9fq+wBks25k2dmnW7naI=";
|
||||
arch = "arm64";
|
||||
};
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
ddns = {
|
||||
image = "qmcgaw/ddns-updater";
|
||||
imageFile = ddnsImg;
|
||||
volumes = [
|
||||
"/run/dbus:/run/dbus:ro"
|
||||
"/etc/localtime:/etc/localtime:ro"
|
||||
];
|
||||
ports = [ "0.0.0.0:8123:8123" ];
|
||||
# networks = [ "meow" ];
|
||||
};
|
||||
};
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
8123
|
||||
];
|
||||
allowedUDPPortRanges = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -24,11 +24,6 @@
|
||||
home-assistant = {
|
||||
image = "homeassistant/home-assistant";
|
||||
imageFile = homeAssistantImg;
|
||||
labels = {
|
||||
"traefik.enable" = "true";
|
||||
"traefik.http.routers.websecure.service" = "home-assistant";
|
||||
"traefik.http.routers.websecure.rule" = "Host(`ha.home.doloro.co.uk`)";
|
||||
};
|
||||
volumes = [
|
||||
"/data/homeAssistant:/config"
|
||||
"/run/dbus:/run/dbus:ro"
|
||||
|
||||
Reference in New Issue
Block a user