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

Set or disable web_addr web UI #303

Open
chetbox opened this issue Apr 19, 2023 · 1 comment
Open

Set or disable web_addr web UI #303

chetbox opened this issue Apr 19, 2023 · 1 comment

Comments

@chetbox
Copy link

chetbox commented Apr 19, 2023

By default, ngrok runs a web server for debugging purposes on port 127.0.0.1:4040. This can be overridden with the web_addr config file option but there doesn't seem to be a way to set it in this library.

We're using this library in an Electron app and we don't want to be opening ports on our customers' machines they didn't expect.

@philnash
Copy link
Collaborator

philnash commented May 8, 2023

As you pointed out, web_addr can be set in the config file. There isn't another way to set the web_addr though. This library wraps the ngrok CLI and there isn't, for example, a CLI flag you can pass to set web_addr.

You probably want to maintain a config file for your Electron app that sets the web_addr for you.

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

2 participants