From 4df3c4ae8c99cf4c17280d4f98ba5ae06a4c8e82 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 9 Apr 2020 01:19:00 +0200 Subject: [PATCH] pepe: add nginx for home-assistant --- configs/pepe/home-assistant.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configs/pepe/home-assistant.nix b/configs/pepe/home-assistant.nix index 3b5f102..449dd30 100644 --- a/configs/pepe/home-assistant.nix +++ b/configs/pepe/home-assistant.nix @@ -210,4 +210,21 @@ in { }; + # host nginx setup + services.nginx = { + enable = true; + recommendedProxySettings = true; + virtualHosts = { + "iot.pepe.private" = { + serverAliases = [ + "hass.pepe.private" + "home.pepe.private" + ]; + locations."/" = { + proxyPass = "http://pepe.private:8123"; + }; + }; + }; + }; + }