From 35d6c474831a54df78bdbff8bbc81e3d3b91a63a Mon Sep 17 00:00:00 2001 From: tbarnouin Date: Fri, 20 Sep 2024 10:50:59 +0200 Subject: [PATCH] Add netbox vhost in nginx config --- services/nginx/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/nginx/default.nix b/services/nginx/default.nix index ffe9de1..3867d22 100644 --- a/services/nginx/default.nix +++ b/services/nginx/default.nix @@ -123,6 +123,15 @@ in proxyWebsockets = true; }; }; + virtualHosts."netbox.le43.eu" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.1.45"; + recommendedProxySettings = true; + proxyWebsockets = true; + }; + }; }; }; networking.firewall.allowedTCPPorts = [ 80 443 ];