summary refs log tree commit diff
path: root/host/Rory-nginx/services/nginx/rory.boo
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-08-18 03:23:21 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-08-18 03:23:21 +0200
commit00ced9c15a7ced5b754d24b919ad4d4e8dc8b1a9 (patch)
treebd6a69d78e4daa3f1d872a6ba64259ccde1cf878 /host/Rory-nginx/services/nginx/rory.boo
parentFix imports (diff)
downloadRory-Open-Architecture-00ced9c15a7ced5b754d24b919ad4d4e8dc8b1a9.tar.xz
Refactor nginx
Diffstat (limited to 'host/Rory-nginx/services/nginx/rory.boo')
-rwxr-xr-xhost/Rory-nginx/services/nginx/rory.boo/tunnel.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/nginx/rory.boo/tunnel.nix b/host/Rory-nginx/services/nginx/rory.boo/tunnel.nix
new file mode 100755
index 0000000..b50823b
--- /dev/null
+++ b/host/Rory-nginx/services/nginx/rory.boo/tunnel.nix
@@ -0,0 +1,14 @@
+{
+  enableACME = true;
+  addSSL = true;
+  locations = {
+    "/" = {
+      proxyPass = "http://127.0.0.1:5173";
+      proxyWebsockets = true;
+      extraConfig =
+        "proxy_ssl_server_name on;" +
+        "proxy_pass_header Authorization;"
+        ;
+    };
+  };
+}