From b03cc5fff29d7741895480cd83d63d867a8e5bec Mon Sep 17 00:00:00 2001 From: mia Date: Sun, 15 Sep 2024 10:22:38 -0700 Subject: add akkoma-fe to outskirts.town --- nginx/nginx.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'nginx') 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; + } + } } -- cgit 1.4.1