Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0ecace2
mix gen auth and first round of html templating
Jun 22, 2025
4a99e0e
fix formatting
Jun 22, 2025
61819df
Add login/logout logic, fix log out link, fix tests
Jul 4, 2025
fd03741
Added FAQ (since we aren't functional yet)
Jul 4, 2025
728c00f
Add FAQ as component
Jul 4, 2025
428156a
Configure production mailserver
Jul 8, 2025
d9318c0
WIP docs on rc deployment
Jul 20, 2025
b826e4d
Add bamboo and bamboo_smtp dependencies
Jul 27, 2025
71773de
Switching to swoosh smtp/mail adapter
Jul 27, 2025
9167064
Add gen_smtp dependency (missing?)
Jul 27, 2025
a62e2bb
let's try more tls options
Jul 27, 2025
e9994a3
switch to mua mail adapter
Jul 27, 2025
b4a3b7e
Revert "switch to mua mail adapter"
Jul 27, 2025
fc3b56b
Skip certificate validation
Jul 27, 2025
1cdb6d7
this seems to work locally
Jul 27, 2025
6640d31
try not validating
Jul 27, 2025
0052cdd
let's try the mua mailer
Jul 27, 2025
8ef54cc
port is an int
Jul 27, 2025
38ca091
add default port for smtp
Jul 27, 2025
3044116
one last test for today: send emails directly
Jul 27, 2025
e7e7bd1
Test sending via ssl (and without mx_lookup)
Jul 29, 2025
3280252
separate relay name and host name
Jul 29, 2025
4c1b6a4
clean up dependency and document mail adapter config
Jul 29, 2025
ab6c599
fix formatting
Jul 29, 2025
5fd6d41
minimize diff
Aug 10, 2025
dcda0e9
Simple tests for about page
Aug 16, 2025
60e5ab1
Simple privacy policy
Aug 16, 2025
7fbd1d5
[feature] allow users to delete their account
Aug 17, 2025
1f82591
WIP: automatic tests for user account deletion
Sep 26, 2025
8d3b48c
fix form to make test pass
Sep 26, 2025
f0f5691
fix typo in faq
Sep 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,38 @@ if config_env() == :prod do
# api_key: System.get_env("MAILGUN_API_KEY"),
# domain: System.get_env("MAILGUN_DOMAIN")
#

config :cklist, Cklist.Mailer,
adapter: Swoosh.Adapters.SMTP,
# relay name as in the certificate, e.g. mail.example.org
relay: System.get_env("SMTP_RELAY"),
# hostname that ssl connects to
hostname: System.get_env("SMTP_HOSTNAME"),
# port that ssl connects to
port: System.get_env("SMTP_PORT"),
# mailuser name
username: System.get_env("SMTP_USERNAME"),
# mailuser password
password: System.get_env("SMTP_PASSWORD"),
ssl: true,
# Used for STARTTLS config. We use SSL/TLS, so we don't need this.
tls: :never,
auth: :always,
retries: 2,
# don't look up mx entries. We already specify everything correctly.
no_mx_lookups: true,
sockopts: [
# force new tls version
versions: [:"tlsv1.3"],
# verify ssl certificates
verify: :verify_peer,
cacerts: :public_key.cacerts_get(),
depth: 5,
customize_hostname_check: [
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
]
]

# For this example you need include a HTTP client required by Swoosh API client.
# Swoosh supports Hackney and Finch out of the box:
#
Expand Down
3 changes: 3 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Config

# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1

# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
Expand Down
Loading