From 27d9f73c61d1e1085c404da64bc58e5f1bb35eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 14 Sep 2024 17:17:09 +0200 Subject: [PATCH] Set host for RS auth url With X-Forwarded-Host set on the proxied request, Rails uses that host for URLs. But we need it to be the accounts domain. --- app/controllers/webfinger_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/webfinger_controller.rb b/app/controllers/webfinger_controller.rb index dd6a9eb..f3bf08d 100644 --- a/app/controllers/webfinger_controller.rb +++ b/app/controllers/webfinger_controller.rb @@ -74,7 +74,7 @@ class WebfingerController < WellKnownController end def remotestorage_link - auth_url = new_rs_oauth_url(@username) + auth_url = new_rs_oauth_url(@username, host: Setting.accounts_domain) storage_url = "#{Setting.rs_storage_url}/#{@username}" {