Skip to content

Commit

Permalink
Remove a warning from Google Search Console
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Aug 8, 2024
1 parent f4e94c4 commit e72a011
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
:80 {
@files {
not path /health
not path /health /robots.txt
}
@health {
path /health
}
@robots {
path /robots.txt
}

log
log_skip @health
Expand All @@ -13,6 +16,11 @@

respond @health 200

respond @robots <<TXT
User-agent: *
Disallow: /
TXT 200

try_files @files {path}.html

file_server @files
Expand Down

0 comments on commit e72a011

Please sign in to comment.