Repository navigation
Conversation
Signed-off-by: Valerii Svydenko <[email protected]>
|
AFAIK it won't work as we're accessing the registry both from the client side and the server side |
| if [ -z "$OPENVSX_REGISTRY_URL" ]; then | ||
| # remove the suffix /v3 from this variable | ||
| CHE_PLUGIN_REGISTRY_ROOT_URL=${CHE_PLUGIN_REGISTRY_URL%/v3} | ||
| CHE_PLUGIN_REGISTRY_ROOT_URL=${CHE_PLUGIN_REGISTRY_INTERNAL_URL%/v3} |
There was a problem hiding this comment.
probably here we need two variables, one with external access, one internal
internal should go in the product.json
external in the .js file (used by browser so it needs to reach access)
|
Pull Request images published ✨ |
Signed-off-by: Valerii Svydenko <[email protected]>
benoitf
left a comment
There was a problem hiding this comment.
LGTM but I have not yet tested
|
Pull Request images published ✨ |
|
I haven't checked that either, marked as WIP |
Signed-off-by: Valerii Svydenko <[email protected]>
|
Pull Request images published ✨ |
|
using OPENVSX_INTERNAL_URL=http://plugin-registry.eclipse-che.svc:8080/openvsx/vscode still doesn't work |
|
There is rewrite of links with ha_proxy sending original Host in headers so I think even if you access internal links to openvsx, it's providing in JSON answer the public links |
|
For example if you try to see https:///plugin-registry/openvsx/api/redhat links |
|
superseded by #98 |
Signed-off-by: Valerii Svydenko [email protected]
Use the internal plugin registry URL for the embedded openVSX registry to avoid problems with the certificates
Related problem: eclipse-che/che#21662