diff --git a/config/config.exs b/config/config.exs index 152bd7c82..d3c8c189b 100644 --- a/config/config.exs +++ b/config/config.exs @@ -19,7 +19,7 @@ config :plausible, :clickhouse, config :plausible, PlausibleWeb.Endpoint, url: [ host: System.get_env("HOST", "localhost"), - port: String.to_integer(System.get_env("PORT", "8000")) + scheme: System.get_env("SCHEME", "http") ], http: [ port: String.to_integer(System.get_env("PORT", "8000")) diff --git a/lib/plausible_web/templates/site/custom_domain_dns_setup.html.eex b/lib/plausible_web/templates/site/custom_domain_dns_setup.html.eex index 4fbfc1cc0..b50f1980a 100644 --- a/lib/plausible_web/templates/site/custom_domain_dns_setup.html.eex +++ b/lib/plausible_web/templates/site/custom_domain_dns_setup.html.eex @@ -3,8 +3,8 @@
  1. Go to your DNS provider’s website
  2. Create a new CNAME record for <%= @site.custom_domain.domain %>
  3. -
  4. Point the record to custom.<%= plausible_url() %>. (including the dot)
  5. +
  6. Point the record to custom.<%= base_domain() %>. (including the dot)
<%= link("Done ->", to: "/sites/#{URI.encode_www_form(@site.domain)}/custom-domains/snippet", class: "button w-full mt-6") %> - \ No newline at end of file + diff --git a/lib/plausible_web/templates/site/settings.html.eex b/lib/plausible_web/templates/site/settings.html.eex index 2fb4acf47..cd2439dcf 100644 --- a/lib/plausible_web/templates/site/settings.html.eex +++ b/lib/plausible_web/templates/site/settings.html.eex @@ -35,7 +35,7 @@ <%= if @site.public do %> Stats for <%= @site.domain %> are currently public. Anyone with the following link can view the stats:
- URI.encode_www_form(@site.domain)%>" class="transition bg-gray-100 appearance-none border border-transparent rounded w-full p-2 pr-16 text-gray-700 appearance-none focus:outline-none" /> + URI.encode_www_form(@site.domain)%>" class="transition bg-gray-100 appearance-none border border-transparent rounded w-full p-2 pr-16 text-gray-700 appearance-none focus:outline-none" />