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] serve HTML usage instructions on cache pages #162

Open
LordMZTE opened this issue Aug 23, 2024 · 3 comments
Open

[Feature] serve HTML usage instructions on cache pages #162

LordMZTE opened this issue Aug 23, 2024 · 3 comments

Comments

@LordMZTE
Copy link

I have an attic cache at https://nix.mzte.de/mzte that I'd like to allow others to use, but if one visits this URL in a browser, it just returns a JSON-formatted 404 response. It would be nice to show a HTML page here instead that briefly summarized how to configure Nix to use the cache, so it's easy to share. Cachix also does something similar here.

@jzbor
Copy link
Contributor

jzbor commented Sep 24, 2024

You can easily do that in your reverse proxy (e.g. nginx or caddy), which is also probably a cleaner and more customizable solution than native support by attic.

@LordMZTE
Copy link
Author

I don't see how that would work, as such a page would ideally show the public key of the cache (for setup without the attic CLI), which would require either something more complex than a simple page like nginx can provide on the backend, or complex JS on the frontend, which is avoidable here. I think it makes perfect sense to integrate this into attic.

@jzbor
Copy link
Contributor

jzbor commented Sep 24, 2024

I see your point. It would be nice, if this information like key and instructions with the correct url was available by default.

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