aboutsummaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-28 21:01:45 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-28 21:01:45 +0100
commitee968254708395548f62f5d427489ab15fbf5528 (patch)
tree46f48722c54a3f472f5911bbe3596bb8f569b16a /Caddyfile
parent9075971696cae25228779e9deb9dba113b3d1b43 (diff)
downloadmfashby.net-ee968254708395548f62f5d427489ab15fbf5528.tar.gz
mfashby.net-ee968254708395548f62f5d427489ab15fbf5528.tar.bz2
mfashby.net-ee968254708395548f62f5d427489ab15fbf5528.tar.xz
mfashby.net-ee968254708395548f62f5d427489ab15fbf5528.zip
Add env example in caddyfile
Use baseline CPU. Raspberry pi doesn't have some SHA extensions that pinebook pro does, which caused illegal instruction errors trying to send mail over TLS.
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Caddyfile b/Caddyfile
index 4106cea..f516b4e 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -6,7 +6,9 @@ http://localhost:8080 {
root * public
# API server
- cgi /api/* comments/zig-out/bin/comments
+ cgi /api/* comments/zig-out/bin/comments {
+ env NOTIFICATION_ADDRESS=martin@mfashby.net SMTP_SERVER=mail.mfashby.net:587 SMTP_USERNAME=comments@mfashby.net SMTP_PASSWORD=foobar
+ }
# Redirects for old assets
redir /10-11-21-longboard-slides.mp4 /assets/10-11-21-longboard-slides.mp4 permanent