summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--host/Rory-nginx/configuration.nix2
-rw-r--r--host/Rory-nginx/hosts/rory.boo/tunnel.nix12
2 files changed, 14 insertions, 0 deletions
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