summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2020-07-10 17:02:39 +0200
committerStefan Kreutz <mail@skreutz.com>2020-07-10 17:02:39 +0200
commit9452bef415d61cceff15a6f3cc88cc624e9cb0c7 (patch)
treea4c8088ee3e8a47bd908d3b43e59e5d4de86f07f
parent234fa7a30befd5f56ab2de2e13586a078f9a9593 (diff)
downloadblog-9452bef415d61cceff15a6f3cc88cc624e9cb0c7.tar
Add empty health file
This commit adds an empty file to be served at /health to be queried by monitoring and reverse proxy such that I can filter their access from the access logs.
-rw-r--r--health0
-rw-r--r--site.hs2
2 files changed, 1 insertions, 1 deletions
diff --git a/health b/health
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/health
diff --git a/site.hs b/site.hs
index fcf617d..118eb34 100644
--- a/site.hs
+++ b/site.hs
@@ -7,7 +7,7 @@ import System.FilePath.Posix ((</>), (<.>), splitExtension, splitFileName, takeD
main :: IO ()
main = hakyllWith hakyllConfig $ do
- match ("images/*" .||. "files/*" .||. "robots.txt") $ do
+ match ("images/*" .||. "files/*" .||. "robots.txt" .||. "health") $ do
route idRoute
compile copyFileCompiler
Generated by cgit. See skreutz.com for my tech blog and contact information.