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

Use localhost OpenVSX instance in VSCode #979

Closed
opennano opened this issue Sep 3, 2024 · 3 comments
Closed

Use localhost OpenVSX instance in VSCode #979

opennano opened this issue Sep 3, 2024 · 3 comments

Comments

@opennano
Copy link

opennano commented Sep 3, 2024

Is there any way to integrate these two locally? VSCode refuses to talk to http://localhost:8080 where the server is running. It at least tries to connect if I point it to https locally (i.e. Nginx proxy-passing from https://localhost:8443 to http://localhost:8080), but then I can't find any solution to get it to stop complaining about the self-signed cert I had to generate for Nginx.

Anyone ever gotten this to work? It sure would be nice to not have to deploy a whole server with valid certs for a simple poc.

@opennano
Copy link
Author

opennano commented Sep 4, 2024

Answering my own question: you can configure Node/Electron to ignore cert errors globally with a command-line argument. In other words, launch VSCode like this:

code --ignore-certificate-errors

This is sufficient for my needs as I am just after a fully integrated dev environment on my machine.

It might be nice to include this info in a doc somewhere...

@amvanbaren
Copy link
Contributor

It might be nice to include this info in a doc somewhere...

Hi @opennano, looking forward to your PR.

@OliverinMelb
Copy link

It might be nice to include this info in a doc somewhere...

Hi @opennano, looking forward to your PR.

Title: Suggesting Changes to OpenVSX Wiki: HTTPS Deployment
Hi OpenVSX maintainers,

I have made some updates to the Wiki related to deploying OpenVSX with HTTPS. Specifically, I added a new section on how to deploy OpenVSX via HTTPS using a self-signed certificate and Nginx.

You can review my changes in my fork here: branch: fix-http-to-https-Oliver

Here are the key points in my changes:

Added instructions for applying for a self-signed certificate using OpenSSL.
Provided steps for configuring Nginx to handle HTTP to HTTPS redirection and proxy requests.
Included example configurations for deploying OpenVSX via HTTPS.
If you think these updates are useful, I would be happy to assist with incorporating them into the main Wiki repository.

Looking forward to your feedback!

Best regards,
Zhang Shiqi (OliverinMelb)

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

3 participants