aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Caddyfile4
-rwxr-xr-xdeploy.sh2
2 files changed, 4 insertions, 2 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
diff --git a/deploy.sh b/deploy.sh
index 55b9dc6..60efc13 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -12,7 +12,7 @@ then
echo "must build on aarch64 for now"
exit
fi
-zig build -Doptimize=ReleaseSafe
+zig build -Doptimize=ReleaseSafe -Dcpu=baseline
popd
# TODO update caddy with offline message while site being updated