Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

prepare for wiki (#4512)

ruslandogae9ced986ce52
diff --git a/config/runtime.exs b/config/runtime.exs
index 8a48bdf757..38f0c8f87b 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -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)
@@ -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
@@ -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
@@ -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")
diff --git a/lib/plausible_web/templates/site/settings_search_console.html.heex b/lib/plausible_web/templates/site/settings_search_console.html.heex
index 183016d85a..9f80328166 100644
--- a/lib/plausible_web/templates/site/settings_search_console.html.heex
+++ b/lib/plausible_web/templates/site/settings_search_console.html.heex
@@ -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>