Coder Social home page Coder Social logo

Comments (6)

moyix avatar moyix commented on April 19, 2024 1

Yes, unfortunately modern TLS stacks tend to reject self-signed certs. If they don't have an override setting like the VSCode plugin does, then you may be out of luck, short of modifying the plugin code (which is doable I think; it's just JavaScript).

from fauxpilot.

moyix avatar moyix commented on April 19, 2024

Do you mean for use with FauxPilot? If so, then you want to point it at http://localhost:5000, as mentioned in the README. I'm not sure what the URL for the official Copilot servers is, but you should be able to dig it out of the VSCode plugin.

from fauxpilot.

HughPH avatar HughPH commented on April 19, 2024

Do you mean for use with FauxPilot? If so, then you want to point it at http://localhost:5000, as mentioned in the README.

No, I have that, and I've configured nginx as a reverse proxy with a self-signed certificate so I can just redirect requests to the machine hosting fauxpilot. The problem is that the plugin is not configurable, so there's nowhere for me to put http://localhost:5000 (or any other location)

I'd like to find out the address without having to install VSCode and a plugin, but if that's the only way then that's what I'll do.

from fauxpilot.

HughPH avatar HughPH commented on April 19, 2024

Looking at some javascript associated with the JetBrains plugin, it looks like it's probably copilot-proxy.githubusercontent.com

from fauxpilot.

HughPH avatar HughPH commented on April 19, 2024

Unfortunately when I change the hosts file to point to where it's hosted, the plugin just fails without apparently hitting the server. It may be allergic to the self-signed certificate: the server side logs only an error: "Unexpected EOF while reading" which suggests the client side cut the connection right after discovering the certificate was invalid. To go further I would need to create my own CA cert and install it locally, and sign my nginx cert with that CA cert - and even then it might not work: I notice the same javascript references /engines/copilot-codex, /engines/${a} (so presumably it can be remotely configured per user), and /engines/copilot-experiment-e-centralus

from fauxpilot.

thakkarparth007 avatar thakkarparth007 commented on April 19, 2024

Please see my comment in #10 regarding this.

Closing as stale. Please reopen if needed!

from fauxpilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.