Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Add option to completely disable cron
Uku Taht99a3582883af
diff --git a/.env.dev b/.env.devindex f5aca325e5..8f080c8f5c 100644--- a/.env.dev+++ b/.env.dev@@ -7,3 +7,4 @@ ENVIRONMENT=devMAILER_ADAPTER=Bamboo.LocalAdapterLOG_LEVEL=debugSELFHOST=false+DISABLE_CRON=truediff --git a/config/runtime.exs b/config/runtime.exsindex c4f3243f9a..8b3d1f1fe7 100644--- a/config/runtime.exs+++ b/config/runtime.exs@@ -64,6 +64,7 @@ hcaptcha_secret = System.get_env("HCAPTCHA_SECRET")log_level = String.to_existing_atom(System.get_env("LOG_LEVEL", "warn"))appsignal_api_key = System.get_env("APPSIGNAL_API_KEY")is_selfhost = String.to_existing_atom(System.get_env("SELFHOST", "true"))+disable_cron = String.to_existing_atom(System.get_env("DISABLE_CRON", "false")){user_agent_cache_limit, ""} = Integer.parse(System.get_env("USER_AGENT_CACHE_LIMIT", "1000"))@@ -154,7 +155,7 @@ config :plausible, :custom_domain_server,config :plausible, PlausibleWeb.Firewall,blocklist: System.get_env("IP_BLOCKLIST", "") |> String.split(",") |> Enum.map(&String.trim/1)-if config_env() == :prod do+if config_env() == :prod && !disable_cron dobase_cron = [# Daily at midnight{"0 0 * * *", Plausible.Workers.RotateSalts},