Giter VIP home page Giter VIP logo

Comments (6)

inconshreveable avatar inconshreveable commented on July 19, 2024

This is because of issue #53. Right now, you can fix this by recompiling the ngrok client and changing this file:

https://github.com/inconshreveable/ngrok/blob/master/src/ngrok/client/tls.go

The problem is the hardcoded "ngrokd.ngrok.com". If you change this to "ngrok.mydomain.ru" it will work. I'm going to push a fix for this in the next day. It should just be a matter of passing through the hostname part of the address.

from ngrok.

vlebedev avatar vlebedev commented on July 19, 2024

I've changed "ngrokd.ngrok.com" --> "ngrok.mydomain.ru" on the client though I'm still getting the same error messages.

from ngrok.

inconshreveable avatar inconshreveable commented on July 19, 2024

hrmmm, okay. I'm going to take a deeper look

from ngrok.

timvdl avatar timvdl commented on July 19, 2024

Any change on this subject? Ran into the same problem.
Change the code as mentioned above but no luck there too.

from ngrok.

inconshreveable avatar inconshreveable commented on July 19, 2024

Sorry, I've been caught up in other things, I'm going to try to take a look at this tomorrow.

from ngrok.

inconshreveable avatar inconshreveable commented on July 19, 2024

@timvdl @vlebedev

Okay, so after looking at this more carefully, there is one issue with ngrok and one problem with your configuration:

The ngrok issue was #53, which is now fixed. You shouldn't need to modify the source code any more to change the TLS configuration because it will extract the right server name from the server_addr you pass in the configuration file.

The fix for the configuration error you're running into is mentioned in the self-hosting doc:
https://github.com/inconshreveable/ngrok/blob/master/docs/SELFHOSTING.md

Specifically, you need to specify the following in your ngrok configuration:

trust_host_root_certs: true

This instructs ngrok to use your host's root certificate authority pool to validate the TLS connections because by default, ngrok only recognizes the certificate authority for ngrok.com. Alternatively, you can recompile ngrok if you replace assets/client/tls/ngrokroot.crt with the proper root certificate, but that's more advanced.

from ngrok.

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.