Skip to content

Instantly share code, notes, and snippets.

@ObjectIsAdvantag
Last active December 2, 2015 21:22
Show Gist options
  • Save ObjectIsAdvantag/d604ab1c66bde037a4c5 to your computer and use it in GitHub Desktop.
Save ObjectIsAdvantag/d604ab1c66bde037a4c5 to your computer and use it in GitHub Desktop.
# Install devd (en version 0.3 à minima)
# Create reverse proxy
# -H option to see headers
# -s for SSL support (DO NOT USE with localtunnel)
> devd -p 5000 https://tunnels.apispark.net:443/ -H
# Launch tunnel (internet reverse proxy)
# - you may need to create an account first...
> npm install -g localtunnel
> lt --port 5000 --subdomain sfartz
# The server you proxy must be opened, there is no automated reconnection
# Call API
> curl https://sfartz.localtunnel.me/ v1/companies
# Alternative with ngrok
# - but no domain choice, no https support (unless paying)
# - but-but a clean web ui
> ngrok http 5000
> curl...
# Alternative with mitmproxy
# - but does not install on windows and no UI
# - go for a docker image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment