Anubis module for Caddy
1localhost { 2 log { 3 level debug 4 } 5 6 @anubis { 7 # This matcher allows you to select specific paths for Anubis to handle. 8 # If you want to handle all paths, remove this block and use `anubis {...}` instead! 9 path / # don't let AI scrapers browse the file index 10 path /.within.website/* # required for anubis to work 11 12 not path /api/* # exclude api routes from anubis 13 } 14 15 anubis @anubis { 16 # This setting gets overridden a lot by the default bot policy. 17 difficulty 4 18 19 # Custom bot policy 20 policy_fname example/botPolicy.yaml 21 22 # FIXME: required for OpenGraph passthrough! 23 ## TODO: access upstream directly somehow? 24 ## otherwise anubis may trigger itself 25 ## additionally, https://github.com/TecharoHQ/anubis/issues/329 26 # target http://localhost:8080 27 } 28 29 file_server browse 30}