From 0aececd4fd7aa7577e1c40ad40a1e69fa5401332 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 21 Nov 2023 17:38:07 -0800 Subject: [PATCH] added proxy for iot devices --- hosts/Alaska/modules/dns.nix | 5 +++++ hosts/Alaska/modules/nginx.nix | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/hosts/Alaska/modules/dns.nix b/hosts/Alaska/modules/dns.nix index 4df7d5b..2f1e1e2 100644 --- a/hosts/Alaska/modules/dns.nix +++ b/hosts/Alaska/modules/dns.nix @@ -14,4 +14,9 @@ type = "A"; value = "100.64.0.1"; } + { + name = "iot.nickiel.net"; + type = "A"; + value = "100.64.0.1"; + } ] diff --git a/hosts/Alaska/modules/nginx.nix b/hosts/Alaska/modules/nginx.nix index 0fe9532..3f024c3 100644 --- a/hosts/Alaska/modules/nginx.nix +++ b/hosts/Alaska/modules/nginx.nix @@ -39,6 +39,12 @@ }; }; + "iot.nickiel.net" = { + locations."/turn_computer_on" = { + proxyPass = "http://10.0.184/turn_computer_on"; + }; + }; + "files.nickiel.net" = { forceSSL = true; enableACME = true;