IDrive Tunnel helps you to expose your local web server to the public without any cloud server, domain name or SSL certificate. It is secure.!
Call the below API and fetch the credentials for the tunnel client
curl -X POST https://api.idrivetunnel.com/api/v1/create_tunnel -H 'content-type: application/json' -d '{"username":"<USER_NAME>"}'
USER_NAME : idrive username
API OUTPUT:
{ token, tunnel_server, public_web_url }
Note: This API works only from IDrive test and production servers
curl -fsSL "https://api.idrivetunnel.com/script/install.sh" | sh
Edit /etc/idtunnel/idtuncli.conf
TOKEN : “token” attribute from create_tunnel API output
TUNNEL : “tunnel_server” attribute from create_tunnel API output (default : tls://us-west-1.idrivetunnel.com)
systemctl start idtuncli
"public_web_url"
attribute
from create_tunnel API output
Example :
https://xxxxx-xxxxx-xxxxx-xxxxx.us-west-1.idrivetunnel.com
Note: Make sure your web application serves with only one port number.