Skip to content

Instantly share code, notes, and snippets.

@Gustavo-Kuze
Created October 7, 2020 21:44
Show Gist options
  • Save Gustavo-Kuze/ef760791e649c64e3936decac9661ac6 to your computer and use it in GitHub Desktop.
Save Gustavo-Kuze/ef760791e649c64e3936decac9661ac6 to your computer and use it in GitHub Desktop.
Executar múltiplos túneis NGROK

Para configurar o ngrok para rodar tanto o projeto frontend quanto o backend simultaneamente, basta adicionar o seguinte código ao arquivo "C:\Users\USER\.ngrok2\ngrok.yml"

authtoken: 1bGvuFnqnXjihKbkqtx8qVld2ie_2736j4KfrDdMHhBh3uDtn
tunnels:
  portafront:
    proto: http
    addr: 8000
  portaapi:
    proto: http
    addr: 8888

E então ao invés de executar apenas um tunnel com o comando ngrok http 8000, por exemplo, basta executar todos os túneis definidos nesse arquivo, com:

ngrok start --all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment