From fed92aa71d7a604d004204a399055832e8a2e80f Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Thu, 24 Apr 2025 17:07:55 -0500 Subject: [PATCH] added closing curly bracket --- nixos/configuration.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index e46f2d2..d4c4cd9 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -52,7 +52,24 @@ }; }; }; - + + services.nginx.virtualHosts."test.roypository.com" = { + forceSSL = true; + enableACME = true; + addSSL = true; + + locations."/" = { + proxyPass = "http://localhost:3000"; + proxyWebsockets = true; # optional: if using websockets + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + ''; + }; + }; + # Grub Boot Loader Setup boot.loader.grub = { enable = true;