🗝
summary refs log tree commit diff
path: root/nginx/nginx.conf
diff options
context:
space:
mode:
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;
+        }
+    }
 }