🗝
summary refs log tree commit diff
path: root/nginx/nginx.conf
diff options
context:
space:
mode:
authormia <mia@mia.jetzt>2024-09-15 10:22:38 -0700
committermia <mia@mia.jetzt>2024-09-15 10:22:38 -0700
commitb03cc5fff29d7741895480cd83d63d867a8e5bec (patch)
tree06df5865d1d1b175f247ee115abe41f346d2d9f6 /nginx/nginx.conf
parent3b8f8f8fe4fe8e41e91ece2fa284dc940278f6af (diff)
downloadasylum-b03cc5fff29d7741895480cd83d63d867a8e5bec.tar.gz
asylum-b03cc5fff29d7741895480cd83d63d867a8e5bec.zip
add akkoma-fe to outskirts.town
Diffstat (limited to 'nginx/nginx.conf')
-rw-r--r--nginx/nginx.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 6a091b1..0137b11 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -145,4 +145,30 @@ http {
             proxy_set_header Connection $connection_upgrade;
         }
     }
+
+    # outskirts akkoma-fe
+    server {
+        listen 80;
+        listen [::]:80;
+        server_name ak.outskirts.town;
+
+        location / {
+            root /usr/share/iceshrimp.net/akkoma-fe;
+            index index.html;
+            try_files $uri /index.html =404;
+        }
+
+        location ^~ /oauth/authorize {
+            return 307 https://outskirts.town$request_uri;
+        }
+
+        location ~* ^/(api|oauth|nodeinfo)/ {
+            proxy_pass http://localhost:6502;
+            proxy_http_version 1.1;
+            proxy_redirect off;
+            proxy_set_header Host outskirts.town;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection $connection_upgrade;
+        }
+    }
 }