net
This commit is contained in:
@@ -9,6 +9,7 @@ with lib;
|
||||
let
|
||||
name = "caddy";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
net = lib.${namespace}.network;
|
||||
|
||||
caddyPackage = pkgs.caddy.withPlugins {
|
||||
plugins = [
|
||||
@@ -45,7 +46,7 @@ let
|
||||
|
||||
@hass host hass.mjallen.dev
|
||||
handle @hass {
|
||||
reverse_proxy http://10.0.1.4:8123
|
||||
reverse_proxy http://${net.hosts.nuc.lan}:${toString net.ports.nuc.homeAssistant}
|
||||
}
|
||||
'';
|
||||
};
|
||||
@@ -53,12 +54,12 @@ let
|
||||
"sonarr.mjallen.dev" = {
|
||||
extraConfig = ''
|
||||
@sonarr {
|
||||
remote_ip 10.0.1.0/24 10.1.1.0/16
|
||||
remote_ip ${net.subnet.lan} ${net.subnet.nebula}
|
||||
host sonarr.mjallen.dev
|
||||
}
|
||||
|
||||
handle @sonarr {
|
||||
reverse_proxy 10.0.1.3:8989
|
||||
reverse_proxy ${net.hosts.nas.lan}:${toString net.ports.nas.sonarr}
|
||||
}
|
||||
|
||||
handle {
|
||||
|
||||
Reference in New Issue
Block a user