From 827d40609e2adc695df1d2cd5d8a904c49e3ca76 Mon Sep 17 00:00:00 2001 From: Storozhenko Evgeny Date: Mon, 7 Sep 2026 05:46:21 +0000 Subject: [PATCH] =?UTF-8?q?fix(well-known):=20apex=20webfinger/nodeinfo=20?= =?UTF-8?q?=E2=86=92=20dynamic=20redirect=20to=20social.dedinit.ru=20(GtS?= =?UTF-8?q?=20split-domain,=20fix=20long=20address=20in=20Tusky/Mastodon)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/.well-known/nodeinfo/.htaccess | 2 ++ static/.well-known/webfinger/.htaccess | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 static/.well-known/nodeinfo/.htaccess create mode 100644 static/.well-known/webfinger/.htaccess diff --git a/static/.well-known/nodeinfo/.htaccess b/static/.well-known/nodeinfo/.htaccess new file mode 100644 index 0000000..2bce6d4 --- /dev/null +++ b/static/.well-known/nodeinfo/.htaccess @@ -0,0 +1,2 @@ +# GoToSocial split-domain: nodeinfo на apex → динамический ответ инстанса. +RedirectMatch 301 ^/\.well-known/nodeinfo(.*)$ https://social.dedinit.ru/.well-known/nodeinfo$1 \ No newline at end of file diff --git a/static/.well-known/webfinger/.htaccess b/static/.well-known/webfinger/.htaccess new file mode 100644 index 0000000..ccb0bc6 --- /dev/null +++ b/static/.well-known/webfinger/.htaccess @@ -0,0 +1,5 @@ +# GoToSocial split-domain: apex (dedinit.ru) → динамический webfinger на хост-инстанс. +# Без этого клиенты (Tusky/Mastodon) резолвят @user@dedinit.ru через статический +# ответ и показывают длинный адрес @user@social.dedinit.ru. +# mod_alias RedirectMatch сохраняет query (?resource=...) и отдаёт 301. +RedirectMatch 301 ^/\.well-known/webfinger(.*)$ https://social.dedinit.ru/.well-known/webfinger$1 \ No newline at end of file