Closed ctn closed 2 years ago
If not, I have a simple PR that will fix this. Thanks.
You can go ahead, we will be glad to merge it. Thanks!
Is there any other reason to use hostpath here?
hostpath
does also include the context path of the URL.
So, the problem with your changes in PR #208 is, that it breaks the PlantUML Base URL path feature.
I think your problem should be solved if you add proxy_set_header X-Forwarded-Proto $scheme;
inside your nginx configuration.
Maybe you will find one of the two examples helpful:
proxy_set_header X-Forwarded-Proto $scheme
does indeed fix the scheme issue, and is a better solution. Thanks.
https://github.com/plantuml/plantuml-server/blob/da290a15fe8d8b8b156dcaf1516b28134e24afe8/src/main/webapp/index.jsp#L10
I have nginx handle SSL and by the time it gets to this service, the request protocol is HTTP. When this
hostpath
is used to construct URLs, they come back to the client browser as HTTP instead of HTTPS.A solution is simply to drop
hostpath
and use relative URIs.Is there any other reason to use
hostpath
here?If not, I have a simple PR that will fix this. Thanks.