diff options
author | mia <mia@mia.jetzt> | 2024-09-15 10:22:38 -0700 |
---|---|---|
committer | mia <mia@mia.jetzt> | 2024-09-15 10:22:38 -0700 |
commit | b03cc5fff29d7741895480cd83d63d867a8e5bec (patch) | |
tree | 06df5865d1d1b175f247ee115abe41f346d2d9f6 /nginx | |
parent | 3b8f8f8fe4fe8e41e91ece2fa284dc940278f6af (diff) | |
download | asylum-b03cc5fff29d7741895480cd83d63d867a8e5bec.tar.gz asylum-b03cc5fff29d7741895480cd83d63d867a8e5bec.zip |
add akkoma-fe to outskirts.town
Diffstat (limited to 'nginx')
-rw-r--r-- | nginx/nginx.conf | 26 |
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; + } + } } |