I am having some issues finding how to properly write my ngrok.yml file such that it will start the tunnel using https. What I have at the moment is the following:
tunnels:
invenutory:
proto: http
addr: 44328
host_header: localhost
The issue here is that if I use the url ngrok gives me it does not connect (i test this by seeing if it hits my healthcheck endpoint, it does not). However, if I start ngrok using the following command:
ngrok http https://localhost:44328 -host-header="localhost:44328"
then it will properly hit my endpoint. How can I make my config file act the same way?
Edit:
If I set the addr
to be addr: "https://localhost:44328"
then it does properly use https, but for some reason this seems to me like an incorrect way of doing it.
host_header
value:host_header: localhost:44328
. In the examples from the documentation the ports used are default ports, so they are not needed. In your command line you are specifying alsohost:port
and not onlyhost
. Quote: The "Host" header field in a request provides the host and port information from the target URI – keenthinker