-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add web_allow_hosts to the config #2
base: master
Are you sure you want to change the base?
Add web_allow_hosts to the config #2
Conversation
Hey @jcw- (permissions are pretty limited here, couldn't assign you and had to fork the repo to make this PR). But the PR is ready, not a huge change or anything, let me know if you have any questions! |
4603b79
to
7db360a
Compare
Thanks for digging into this @codymoorhouse! I believe the pattern here is to make an empty config file to force ngrok to stop looking for any real ones that might be present on the user's system, and then to control the config entirely via the options setup in |
Ah yes, didn't even consider that and that does make sense. Unfortunately I just checked the available flags and I don't see one we could leverage for this specific configuration, so I think for the time we are stuck with the config file approach 😞 |
Hey @jcw- just wondering if there are any other changes you might need/foresee here. Was hoping to merge in the other PR in our other repo, but it won't have any affect until this is deployed and packaged up |
sorry for the extended delay on this one @codymoorhouse - at this point, I'm going to see if Dev Accel can pick this one up! |
What is in this PR?
As part of the latest version of ngrok (changelog) a new configuration was added and enforced.
This PR adds an
![Screenshot 2023-01-27 at 9 57 05 AM](https://user-images.githubusercontent.com/10747839/215147245-c2efa13b-8023-4811-a429-83f32c1878fc.png)
allow_hosts
option so that other web hostnames can be used to inspect the tunnel.Before
After
QA
Can test this by manually copy and pasting the changes into:
/Users/{USERNAME}/.rvm/gems/ruby-2.7.6/bundler/gems/ngrok-tunnel-c2bf7ddea04a/lib/ngrok/tunnel.rb
and then booting up the ngrok server. Then addlocalhost.test
into aallow_hosts
key when spinning up (starting) the tunnellocalhost.test