summary refs log tree commit diff
path: root/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix')
-rw-r--r--host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix b/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix
index e69de29..349322f 100644
--- a/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix
+++ b/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix
@@ -0,0 +1,10 @@
+{
+  locations = {
+    "/" = {
+      extraConfig = ''
+        rewrite ^/api/(.*) /$1 break;
+        return 200 $request_uri;'';
+      proxyPass = "http://localhost:4998";
+    };
+  };
+}
\ No newline at end of file