summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-11 23:29:12 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-02-11 23:29:12 +0100
commitf999d9a167cf2398b5bc065644d01b0c9f0c60eb (patch)
tree822774bd2fe260597648609545bd60d9d1dad9cd /host
parentAdd some base domains (diff)
downloadRory-Open-Architecture-f999d9a167cf2398b5bc065644d01b0c9f0c60eb.tar.xz
Add tunnel
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'host')
-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