aboutsummaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-03-01 21:16:43 +0000
committerMartin Ashby <martin@ashbysoft.com>2024-03-01 21:16:43 +0000
commit1c7126215a8c74154b0d2579b90b346097dcae69 (patch)
treec71c083a1fb1d73edaeddf3e6c99602342f24a8c /Caddyfile
parentf4e897eb87a3ee7c47488baa8ac81fd94b7d55f1 (diff)
downloadmfashby.net-1c7126215a8c74154b0d2579b90b346097dcae69.tar.gz
mfashby.net-1c7126215a8c74154b0d2579b90b346097dcae69.tar.bz2
mfashby.net-1c7126215a8c74154b0d2579b90b346097dcae69.tar.xz
mfashby.net-1c7126215a8c74154b0d2579b90b346097dcae69.zip
Communication
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
index 555a59a..6c36dcb 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -2,9 +2,17 @@
order cgi before respond
}
+(robots) {
+ respond /robots.txt <<EOF
+ Hey robots :)
+ EOF 200
+}
+
http://localhost:8080 {
root * public
+ import robots
+
# API server
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 DATABASE_URL=postgresql://localhost/comments