Skip to content

Commit

Permalink
prepare for wiki (plausible#4512)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga authored Sep 13, 2024
1 parent 0a962e2 commit e9ced98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ https_port = get_int_from_path_or_env(config_dir, "HTTPS_PORT")
base_url = get_var_from_path_or_env(config_dir, "BASE_URL")

if !base_url do
raise "BASE_URL configuration option is required. See https://github.com/plausible/community-edition/tree/v2.1.0?tab=readme-ov-file#quick-start"
raise "BASE_URL configuration option is required. See https://github.com/plausible/community-edition/wiki/configuration#base_url"
end

base_url = URI.parse(base_url)
Expand All @@ -85,10 +85,10 @@ secret_key_base = get_var_from_path_or_env(config_dir, "SECRET_KEY_BASE", nil)

case secret_key_base do
nil ->
raise "SECRET_KEY_BASE configuration option is required. See https://github.com/plausible/community-edition/tree/v2.1.0?tab=readme-ov-file#quick-start"
raise "SECRET_KEY_BASE configuration option is required. See https://github.com/plausible/community-edition/wiki/configuration#secret_key_base"

key when byte_size(key) < 32 ->
raise "SECRET_KEY_BASE must be at least 32 bytes long. See https://github.com/plausible/community-edition/tree/v2.1.0?tab=readme-ov-file#quick-start"
raise "SECRET_KEY_BASE must be at least 32 bytes long. See https://github.com/plausible/community-edition/wiki/configuration#secret_key_base"

_ ->
nil
Expand Down Expand Up @@ -160,14 +160,14 @@ totp_vault_key =
raise ArgumentError, """
TOTP_VAULT_KEY must be Base64 encoded 32 bytes, e.g. `openssl rand -base64 32`.
Got Base64 encoded #{byte_size(totp_vault_key)} bytes.
More info: https://github.com/plausible/community-edition/tree/v2.1.1#quick-start
More info: https://github.com/plausible/community-edition/wiki/configuration#totp_vault_key
"""
end

:error ->
raise ArgumentError, """
TOTP_VAULT_KEY must be Base64 encoded 32 bytes, e.g. `openssl rand -base64 32`
More info: https://github.com/plausible/community-edition/tree/v2.1.1#quick-start
More info: https://github.com/plausible/community-edition/wiki/configuration#totp_vault_key
"""
end
else
Expand Down Expand Up @@ -261,7 +261,7 @@ disable_registration =
|> String.to_existing_atom()

if disable_registration not in [true, false, :invite_only] do
raise "DISABLE_REGISTRATION must be one of `true`, `false`, or `invite_only`. See https://github.com/plausible/community-edition/tree/v2.1.0?tab=readme-ov-file#disable_registration"
raise "DISABLE_REGISTRATION must be one of `true`, `false`, or `invite_only`. See https://github.com/plausible/community-edition/wiki/configuration#disable_registration"
end

hcaptcha_sitekey = get_var_from_path_or_env(config_dir, "HCAPTCHA_SITEKEY")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<p class="text-gray-900 dark:text-gray-200">
An extra step is needed to set up your <%= Plausible.product_name() %> for the Google Search Console integration.
Find instructions <%= link("here",
to: "https://github.com/plausible/community-edition#google-integration",
to: "https://github.com/plausible/community-edition/wiki/google-integration",
class: "text-indigo-500"
) %>
</p>
Expand Down

0 comments on commit e9ced98

Please sign in to comment.