Fix Mastodon signup/password/confirmation links
Adds ENV vars for our custom fix in b916182bc1
fixes #562
This commit is contained in:
parent
d048bbb297
commit
d935b99d7d
@ -10,7 +10,7 @@ node.default["kosmos-mastodon"]["redis_url"] = "redis://localhost:6379/0
|
|||||||
node.default["kosmos-mastodon"]["sidekiq_threads"] = 25
|
node.default["kosmos-mastodon"]["sidekiq_threads"] = 25
|
||||||
node.default["kosmos-mastodon"]["allowed_private_addresses"] = "127.0.0.1"
|
node.default["kosmos-mastodon"]["allowed_private_addresses"] = "127.0.0.1"
|
||||||
|
|
||||||
node.default["kosmos-mastodon"]["onion_address"] = nil
|
node.default["kosmos-mastodon"]["onion_address"] = nil
|
||||||
|
|
||||||
# Allocate this amount of RAM to the Java heap for Elasticsearch
|
# Allocate this amount of RAM to the Java heap for Elasticsearch
|
||||||
node.default["kosmos-mastodon"]["elasticsearch"]["allocated_memory"] = "1536m"
|
node.default["kosmos-mastodon"]["elasticsearch"]["allocated_memory"] = "1536m"
|
||||||
@ -20,6 +20,10 @@ node.default["kosmos-mastodon"]["s3_region"] = nil
|
|||||||
node.default["kosmos-mastodon"]["s3_bucket"] = nil
|
node.default["kosmos-mastodon"]["s3_bucket"] = nil
|
||||||
node.default["kosmos-mastodon"]["s3_alias_host"] = nil
|
node.default["kosmos-mastodon"]["s3_alias_host"] = nil
|
||||||
|
|
||||||
|
node.default["kosmos-mastodon"]["sso_account_sign_up_url"] = "https://kosmos.org"
|
||||||
|
node.default["kosmos-mastodon"]["sso_account_reset_password_url"] = "https://accounts.kosmos.org/users/password/new"
|
||||||
|
node.default["kosmos-mastodon"]["sso_account_resend_confirmation_url"] = "https://accounts.kosmos.org/users/confirmation/new"
|
||||||
|
|
||||||
node.default["kosmos-mastodon"]["default_locale"] = "en"
|
node.default["kosmos-mastodon"]["default_locale"] = "en"
|
||||||
node.default["kosmos-mastodon"]["libre_translate_endpoint"] = nil
|
node.default["kosmos-mastodon"]["libre_translate_endpoint"] = nil
|
||||||
|
|
||||||
|
@ -190,6 +190,7 @@ template "#{mastodon_path}/.env.#{rails_env}" do
|
|||||||
mode "0640"
|
mode "0640"
|
||||||
owner mastodon_user
|
owner mastodon_user
|
||||||
group mastodon_user
|
group mastodon_user
|
||||||
|
sensitive true
|
||||||
variables redis_url: node["kosmos-mastodon"]["redis_url"],
|
variables redis_url: node["kosmos-mastodon"]["redis_url"],
|
||||||
domain: node["kosmos-mastodon"]["domain"],
|
domain: node["kosmos-mastodon"]["domain"],
|
||||||
alternate_domains: node["kosmos-mastodon"]["alternate_domains"],
|
alternate_domains: node["kosmos-mastodon"]["alternate_domains"],
|
||||||
@ -210,6 +211,9 @@ template "#{mastodon_path}/.env.#{rails_env}" do
|
|||||||
vapid_public_key: credentials['vapid_public_key'],
|
vapid_public_key: credentials['vapid_public_key'],
|
||||||
db_pass: postgresql_credentials['mastodon_user_password'],
|
db_pass: postgresql_credentials['mastodon_user_password'],
|
||||||
db_host: "pg.kosmos.local",
|
db_host: "pg.kosmos.local",
|
||||||
|
sso_account_sign_up_url: node["kosmos-mastodon"]["sso_account_sign_up_url"],
|
||||||
|
sso_account_reset_password_url: node["kosmos-mastodon"]["sso_account_reset_password_url"],
|
||||||
|
sso_account_resend_confirmation_url: node["kosmos-mastodon"]["sso_account_resend_confirmation_url"],
|
||||||
default_locale: node["kosmos-mastodon"]["default_locale"],
|
default_locale: node["kosmos-mastodon"]["default_locale"],
|
||||||
allowed_private_addresses: node["kosmos-mastodon"]["allowed_private_addresses"],
|
allowed_private_addresses: node["kosmos-mastodon"]["allowed_private_addresses"],
|
||||||
libre_translate_endpoint: node["kosmos-mastodon"]["libre_translate_endpoint"]
|
libre_translate_endpoint: node["kosmos-mastodon"]["libre_translate_endpoint"]
|
||||||
|
@ -44,6 +44,9 @@ LDAP_SEARCH_FILTER='<%= @ldap[:search_filter] %>'
|
|||||||
LDAP_UID_CONVERSION_ENABLED=<%= @ldap[:uid_conversion_enabled] %>
|
LDAP_UID_CONVERSION_ENABLED=<%= @ldap[:uid_conversion_enabled] %>
|
||||||
LDAP_UID_CONVERSION_SEARCH=<%= @ldap[:uid_conversion_search] %>
|
LDAP_UID_CONVERSION_SEARCH=<%= @ldap[:uid_conversion_search] %>
|
||||||
LDAP_UID_CONVERSION_REPLACE=<%= @ldap[:uid_conversion_replace] %>
|
LDAP_UID_CONVERSION_REPLACE=<%= @ldap[:uid_conversion_replace] %>
|
||||||
|
SSO_ACCOUNT_SIGN_UP=<%= @sso_account_sign_up_url %>
|
||||||
|
SSO_ACCOUNT_RESET_PASSWORD=<%= @sso_account_reset_password_url %>
|
||||||
|
SSO_ACCOUNT_RESEND_CONFIRMATION=<%= @sso_account_resend_confirmation_url %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
# Optional asset host for multi-server setups
|
# Optional asset host for multi-server setups
|
||||||
|
Loading…
x
Reference in New Issue
Block a user