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

swagger under https mindfuck #36

Open
JulienParis opened this issue Mar 8, 2019 · 1 comment
Open

swagger under https mindfuck #36

JulienParis opened this issue Mar 8, 2019 · 1 comment
Assignees
Labels
? Don't know / not enough infos bug Something isn't working

Comments

@JulienParis
Copy link
Collaborator

JulienParis commented Mar 8, 2019

  • swagger doc can appear if swagger.json is loaded
  • swagger.json is loaded if
@property
def specs_url(self):
	'''
	The Swagger specifications absolute url (ie. `swagger.json`)
	:rtype: str
	'''
	return url_for(self.endpoint('specs'), _external=False)

in solidata_api.__init__

  • nginx is a reverse proxy to redirect request to server
  • swagger hostname / base_url is inherited from app.config["SERVER_NAME"]
  • if SERVER_NAME == host:port --> swagger.json is loaded but requests from documentation has problems
  • if IP:PORT is open + declared in config.prod it could work but not in https
  • in case HTTPS nginx fucks up
@JulienParis JulienParis self-assigned this Mar 8, 2019
@JulienParis JulienParis added bug Something isn't working ? Don't know / not enough infos labels Mar 8, 2019
@JulienParis
Copy link
Collaborator Author

also check : noirbizarre/flask-restplus#223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? Don't know / not enough infos bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant