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

make https url configurable for swagger_url #639

Open
kubax opened this issue Jan 4, 2025 · 4 comments
Open

make https url configurable for swagger_url #639

kubax opened this issue Jan 4, 2025 · 4 comments

Comments

@kubax
Copy link

kubax commented Jan 4, 2025

Feature Request

Add a Environment variable that Swagger uses https instead of http.

I'm using signal-cli-rest-api to replace the old signal-cli api from Asamk, because of the better attachment handling (not needing the file inside the container, when attaching something)

Not that i rely hard on Swagger, but it would be nice if there was an option to tell swagger that it would be reached via https instead of http. It is possible to change the url at the top to get it to work, though.

@bbernhard
Copy link
Owner

That should be doable. I guess you are using a reverse proxy for the HTTPS support and it is just about the URL that is displayed in the swagger UI, right?

@kubax
Copy link
Author

kubax commented Jan 6, 2025

exactly, sorry forgot to mention that ^^

Also thanks for the work, works realy great!!

@bbernhard
Copy link
Owner

Thanks for the kind words!

With the next release it should be possible to change that by setting the env variable SWAGGER_USE_HTTPS_AS_PREFERRED_SCHEME=true

@kubax
Copy link
Author

kubax commented Jan 6, 2025

Awesome! :) Thanks

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