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

Generate static index page #860

Closed
sparkofreason opened this issue Apr 14, 2023 · 3 comments
Closed

Generate static index page #860

sparkofreason opened this issue Apr 14, 2023 · 3 comments
Assignees

Comments

@sparkofreason
Copy link

The current index listing on https://repo.clojars.org/ does not play well with artifactory mirroring (and presumably other tools) because it requires JavaScript to run in the web page to generate the index listing. A static index like https://repo1.maven.org/maven2/ should make it possible to mirror clojars in artifactory.

@tobias
Copy link
Member

tobias commented Apr 15, 2023

Some thoughts on how to build this:

  • the current index.html is served by a rule in fastly, and the file doesn't actually exist in the repo
  • we could instead modify this rule to hit an endpoint on the clojars.org with the current path
  • that endpoint could list s3 with a prefix derived from the given path, then generate an html index
  • we cache the result in fastly to reduce the times we list s3, but maybe expire this after an hour

@tobias
Copy link
Member

tobias commented May 9, 2023

I'm working on this (slowly, when I get time) in #866.

@tobias
Copy link
Member

tobias commented May 12, 2023

@sparkofreason This has been released. Let me know if it works for you!

@tobias tobias closed this as completed May 12, 2023
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