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

Self-host ReDoc #38

Open
ghost opened this issue Aug 22, 2024 · 3 comments · May be fixed by #284
Open

Self-host ReDoc #38

ghost opened this issue Aug 22, 2024 · 3 comments · May be fixed by #284
Labels
backend help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Aug 22, 2024

Currently, ReDoc is pulled from cdn.redoc.ly. We should self-host ReDoc to not leak user data.

@abstractionfactory abstractionfactory added the help wanted Extra attention is needed label Sep 4, 2024
@g0dfl3sh
Copy link

Hey there! I had a short look at this. Could we just pull redoc.standalone.js into our repo and embed it like we do for ./backend/internal/server/html.index and ./backend/internal/server/openapi.yml?
The only thing is that this adds maintenance overhead to keep up with the latest version of redoc.standalone.js, but we could add a GHA job to take care of that potentially.

@abstractionfactory
Copy link
Collaborator

@g0dfl3sh ideally, this would be done as part of the go generate command and it would also be uploaded via the same mechanism as the OpenAPI file.

@g0dfl3sh
Copy link

Thanks @abstractionfactory for the hint! Going to start looking into that.

@Zanda256 Zanda256 linked a pull request Feb 6, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants