Anubis module for Caddy
at main 896 B view raw
1localhost { 2 @anubis { 3 # This matcher allows you to select specific paths for Anubis to handle. 4 # If you want to handle all paths, remove this block and use `anubis {...}` instead! 5 path / # don't let AI scrapers browse the file index 6 path /.within.website/* # required for anubis to work 7 8 not path /api/* # exclude api routes from anubis 9 } 10 11 log http.handlers.anubis { 12 level DEBUG 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 botPolicy.yaml 21 22 private_key "a183a07283e86b669e30e153ad4f0c7a9e2bbc3218fc8fa9d6b858b29e97d22b" 23 24 # FIXME: required for OpenGraph passthrough! 25 ## TODO: access upstream directly somehow? 26 ## otherwise anubis may trigger itself 27 ## additionally, https://github.com/TecharoHQ/anubis/issues/329 28 # target http://localhost:8080 29 } 30 31 file_server browse 32}