'How to enable both http and https tunnels in ngrok?

The ngrok help doc says: line 3: Only HTTPS tunnels by default - ngrok agent HTTP tunnels by default will only open a single HTTPS endpoint for your upstream service instead of both an HTTP and HTTPS endpoint. To enable both, you will need to add --scheme http --scheme https to your ngrok agent command or configuration file.

I tried to update the configuration file, but no success. I got "ERROR: line 3: field schemes not found in type config.v2yamlConfig"

version: "2"
authtoken: faswETNh3FAW8DSmVuHrOH18s_6pK7iuqkQP5
schemes: http,https    

                                                                                          

I also tried the following. I got "ERROR: line 3: field scheme not found in type config.v2yamlConfig"

version: "2"
authtoken: faswETNh3FAW8DSmVuHrOH18s_6pK7iuqkQP5
scheme: http,https 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source