Add custom domains (#314)

This commit is contained in:
Riccardo Graziosi
2024-03-24 12:54:02 +01:00
committed by GitHub
parent d47c70f576
commit d17b45c5c4
31 changed files with 221 additions and 39 deletions

View File

@@ -3,6 +3,8 @@ Rails.application.configure do
config.hosts << ".localhost:3000"
config.hosts << ".lvh.me:3000" # used to test oauth strategies in development
config.hosts << ".ngrok-free.app"
config.hosts << ".riggraz.dev"
# 0 if using localhost, 1 if using lvh.me
config.action_dispatch.tld_length = 0

View File

@@ -116,6 +116,7 @@ en:
site_logo: 'Site logo'
subdomain: 'Subdomain'
locale: 'Language'
custom_domain: 'Custom domain'
tenant_setting:
brand_display: 'Display'
show_vote_count: 'Show vote count to users'

View File

@@ -158,6 +158,8 @@ en:
collapse_boards_in_header_no_collapse: 'Never'
collapse_boards_in_header_always_collapse: 'Always'
subtitle_visibility: 'Visibility'
custom_domain_help: 'In your DNS settings, add a CNAME record pointing "%{domain}" to "cname.astuto.io"'
custom_domain_learn_more: 'Learn how to configure a custom domain'
show_vote_count_help: 'If you enable this setting, users will be able to see the vote count of posts. This may incentivize users to vote on already popular posts, leading to a snowball effect.'
show_vote_button_in_board_help: 'If you enable this setting, users will be able to vote posts from the board page. This may incentivize users to vote on more posts, leading to a higher number of votes but of lower significance.'
boards: