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
Use ssh in app directory
Uku Taht4793893eafcc
diff --git a/lib/workers/provision_ssl_certificates.ex b/lib/workers/provision_ssl_certificates.exindex 22a712086c..98ee811c57 100644--- a/lib/workers/provision_ssl_certificates.ex+++ b/lib/workers/provision_ssl_certificates.ex@@ -9,7 +9,7 @@ defmodule Plausible.Workers.ProvisionSslCertificates do{:ok, conn} = ssh.connect(ip: to_charlist(@custom_domain_server[:ip]),user: to_charlist(@custom_domain_server[:user]),- user_dir: '/root/.ssh'+ user_dir: '/app/.ssh')recent_custom_domains = Repo.all(@@ -19,7 +19,7 @@ defmodule Plausible.Workers.ProvisionSslCertificates do)for domain <- recent_custom_domains do- {:ok, res, code} = ssh.run(conn, 'sudo certbot certonly --nginx -n -d #{domain.domain}')+ {:ok, res, code} = ssh.run(conn, 'sudo certbot certonly --nginx -n -d \"#{domain.domain}\"')report_result({res, code}, domain)endend