Selfhost
Set up Ngrok
1
Create ngrok.yml file
cp ngrok.yml.example ngrok.yml
2
Fill the mandatory variables
version: 2
authtoken: AUTH_TOKEN # Grab your auth token here
log_level: debug
log: stdout
tunnels:
api-tunnel:
proto: http
addr: 3000
domain: DOMAIN # Grab your domain here
- AUTH_TOKEN can be found in your ngrok dashboard
- DOMAIN can be found also in your ngrok dashboard
3
Enable Ngrok in the Dockerfiles
Uncomment ngrok service in docker-compose[.dev, .source].yml. The following code MUST BE uncommented.
ngrok:
image: ngrok/ngrok:latest
restart: always
command:
- "start"
- "--all"
- "--config"
- "/etc/ngrok.yml"
volumes:
- ./ngrok.yml:/etc/ngrok.yml
ports:
- 4040:4040
network_mode: "host"
That’s all ! After launching the dockers, all requests targeted at REDIRECT_TUNNEL_INGRESS or WEBHOOK_INGRESS are effectively tunneled to your backend server !
Was this page helpful?