How to add robots.txt

Please find my caddy file below. Can you suggest the exact format to include robots.txt

*.example.com { tls /etc/letsencrypt/live/example.com/fullchain.pem /etc/letsencrypt/live/example.com/privkey.pem log { hostnames 1.example.com output file /var/log/caddy/1.example.com.log } @1 host 1.example.com handle @1 { reverse_proxy localhost:007 }

Please fill out the help topic template, as per the forum rules.

And please mind your formatting, use code blocks. Your config is impossible to read because it lost its formatting.

*.example.com { 
                    tls /etc/letsencrypt/live/example.com/fullchain.pem /etc/letsencrypt/live/example.com/privkey.pem 
                   log { 
                         hostnames 1.example.com 
                         output file /var/log/caddy/1.example.com.log 
                         } 
                 @1 host 1.example.com 
                 handle @1 { reverse_proxy localhost:007 }
                       }

Any help would be appreciated

You didn’t fill out the help topic template, as requested.

It’s a forum rule.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.