diff --git a/assets/mailer_templates/confirmation.html b/assets/mailer_templates/confirmation.html new file mode 100644 index 00000000..d0c8eb5b --- /dev/null +++ b/assets/mailer_templates/confirmation.html @@ -0,0 +1,153 @@ + + + + + +Email Confirmation + + + + + + + +
+ + + + +
+

Log in to AppFlowy


Click the button below to securely log in or sign up. This magic link will expire in 5 minutes.

+ +
Log in / Sign up

Confirming this request will securely log you in.

+
+
+ diff --git a/dev.env b/dev.env index 68731c4f..56fa0cb2 100644 --- a/dev.env +++ b/dev.env @@ -25,6 +25,12 @@ GOTRUE_SMTP_USER=email_sender@some_company.com GOTRUE_SMTP_PASS=email_sender_password GOTRUE_SMTP_ADMIN_EMAIL=comp_admin@some_company.com +GOTRUE_MAILER_TEMPLATES_CONFIRMATION=https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/confirmation.html +GOTRUE_MAILER_TEMPLATES_INVITE=https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/invite.html +GOTRUE_MAILER_TEMPLATES_RECOVERY=https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/recovery.html +GOTRUE_MAILER_TEMPLATES_MAGIC_LINK=https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/magic_link.html +GOTRUE_MAILER_TEMPLATES_EMAIL_CHANGE=https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/email_change.html + # gotrue admin GOTRUE_ADMIN_EMAIL=admin@example.com GOTRUE_ADMIN_PASSWORD=password diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index a42360bf..1fee71be 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -76,6 +76,7 @@ services: # Prometheus Metrics - GOTRUE_METRICS_ENABLED=true - GOTRUE_METRICS_EXPORTER=prometheus + - GOTRUE_MAILER_TEMPLATES_CONFIRMATION=${GOTRUE_MAILER_TEMPLATES_CONFIRMATION} ports: - 9999:9999