From f999d9a167cf2398b5bc065644d01b0c9f0c60eb Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 11 Feb 2023 23:29:12 +0100 Subject: Add tunnel Signed-off-by: TheArcaneBrony --- host/Rory-nginx/configuration.nix | 2 ++ host/Rory-nginx/hosts/rory.boo/tunnel.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix index 9d547df..f5734bc 100644 --- a/host/Rory-nginx/configuration.nix +++ b/host/Rory-nginx/configuration.nix @@ -24,6 +24,8 @@ nginx = { enable = true; package = pkgs.nginxQuic; + recommendedProxySettings = true; + recommendedTlsSettings = true; virtualHosts = { #"siliconheaven.thearcanebrony.net" = import ./hosts/thearcanebrony.net/siliconheaven.nix; #"lfs.thearcanebrony.net" = import ./hosts/thearcanebrony.net/lfs.nix; diff --git a/host/Rory-nginx/hosts/rory.boo/tunnel.nix b/host/Rory-nginx/hosts/rory.boo/tunnel.nix index e69de29..db81075 100644 --- a/host/Rory-nginx/hosts/rory.boo/tunnel.nix +++ b/host/Rory-nginx/hosts/rory.boo/tunnel.nix @@ -0,0 +1,12 @@ +{ + locations = { + "/" = { + proxyPass = "http://127.0.0.1:12345"; + proxyWebsockets = true; + extraConfig = + "proxy_ssl_server_name on;" + + "proxy_pass_header Authorization;" + ; + }; + }; +} \ No newline at end of file -- cgit 1.4.1