Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Provide a way to add a robots.txt file #322

Open
sergiodj opened this issue Dec 17, 2024 · 1 comment
Open

Feature request: Provide a way to add a robots.txt file #322

sergiodj opened this issue Dec 17, 2024 · 1 comment

Comments

@sergiodj
Copy link
Contributor

Hi,

It'd be great to be able to provide a robots.txt file to be applied to certain domains when using Traefik. I believe this could be another service whose Traefik labels are specially crafted to "hijack" requests to /robots.txt and redirect them to some file? Not sure though, I'm definitely not an expert on this area.

Thanks!

@spatterIight
Copy link
Contributor

spatterIight commented Dec 29, 2024

If you are looking to hjack requests most roles support custom middleware rules that would allow you to implement this.

For example: https://github.com/mother-of-all-self-hosting/ansible-role-grafana/blob/ce0e4d477e1c894d8e0bee6d0266022a8ea393e7/templates/labels.j2#L33

Or you could use grafana_container_labels_additional_labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants