Fix local/development RS auth URL
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fb054ae455
commit
646c95ecc2
@ -74,7 +74,7 @@ class WebfingerController < WellKnownController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def remotestorage_link
|
def remotestorage_link
|
||||||
auth_url = new_rs_oauth_url(@username, host: Setting.accounts_domain)
|
auth_url = new_rs_oauth_url(@username, host: Setting.rs_accounts_domain)
|
||||||
storage_url = "#{Setting.rs_storage_url}/#{@username}"
|
storage_url = "#{Setting.rs_storage_url}/#{@username}"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,9 @@ module Settings
|
|||||||
field :remotestorage_enabled, type: :boolean,
|
field :remotestorage_enabled, type: :boolean,
|
||||||
default: ENV["RS_STORAGE_URL"].present?
|
default: ENV["RS_STORAGE_URL"].present?
|
||||||
|
|
||||||
|
field :rs_accounts_domain, type: :string,
|
||||||
|
default: ENV["RS_AKKOUNTS_DOMAIN"] || ENV["AKKOUNTS_DOMAIN"]
|
||||||
|
|
||||||
field :rs_storage_url, type: :string,
|
field :rs_storage_url, type: :string,
|
||||||
default: ENV["RS_STORAGE_URL"].presence
|
default: ENV["RS_STORAGE_URL"].presence
|
||||||
|
|
||||||
|
@ -14,8 +14,9 @@
|
|||||||
<p class="mb-6">
|
<p class="mb-6">
|
||||||
In order to connect an app to your storage account, give it your address:
|
In order to connect an app to your storage account, give it your address:
|
||||||
</p>
|
</p>
|
||||||
<p data-controller="clipboard" class="flex items-center gap-1 sm:w-2/5">
|
<p data-controller="clipboard" class="flex gap-1 sm:w-2/5">
|
||||||
<img src="/img/logos/icon_remotestorage.svg" class="inline-block h-6 w-6 mr-1">
|
<img src="/img/logos/icon_remotestorage.svg"
|
||||||
|
class="inline-block h-6 w-6 mr-1 self-center">
|
||||||
<input type="text" id="user_address" class="grow"
|
<input type="text" id="user_address" class="grow"
|
||||||
value=<%= current_user.address %> disabled="disabled"
|
value=<%= current_user.address %> disabled="disabled"
|
||||||
data-clipboard-target="source" />
|
data-clipboard-target="source" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user