From 91ff01061974928bf70b8d44ec19b554380bdd46 Mon Sep 17 00:00:00 2001 From: Aram Peres Date: Sun, 18 Dec 2022 19:05:48 -0500 Subject: [PATCH] Add mastodon redirect --- website/docker/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/docker/nginx.conf b/website/docker/nginx.conf index acb5e6f..50a489e 100644 --- a/website/docker/nginx.conf +++ b/website/docker/nginx.conf @@ -14,6 +14,11 @@ server { try_files $uri $uri/ /index.html; } + location /.well-known/webfinger { + add_header Access-Control-Allow-Origin '*'; + return 301 https://mastodon.poire.dev$request_uri; + } + error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html;