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

[Bug]: Swagger and openapi.json endpoints use the "localhost" path #1431

Open
1 task done
martkaczmarek opened this issue Jan 9, 2025 · 0 comments
Open
1 task done

Comments

@martkaczmarek
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If we go to /api/docs/webjars/swagger-ui/index.html, the Swagger "Computed URL" always says http://localhost:3000/. Because of that, when clicking Try it out button, it tries to make queries against http://localhost:3000/, which may not be accessible from the client.

Same "localhost" config is seen in the /api/docs/openapi.json (I'm assuming that's where Swagger is getting the path from)

Expected Behavior

Swagger should use a proper api endpoint with external address.

Steps to reproduce

Make Swagger use the "external URL" path configured in ENV variables, instead of Localhost,

Environment

Docker compose multi image
v2.5.3

Additional Information

No response

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

1 participant