Host a Webserver on your Raspberry Pi
pitunnel program can take the following command-line parameters:
pitunnel [-h] [--port PORT] [--host HOST] [--name NAME] [--token TOKEN]
[--http] [--https] [--register] [--type TYPE] [--http-auth HTTP_AUTH]
[--quiet] [--persist] [--list] [--remove ID]
-h, --helpShow this help message and exit.
--port PORTPort number of destination server.
--host HOSTHostname or IP address of destination server (default: localhost).
--name NAMEDisplay name, for reference and subdomain creation.
--token TOKENOptional user tunnel token. Not required if installed from website.
--httpIndicates that a tunnel is for a HTTP service. Will create a http link on the custom tunnels list with a subdomain.
--https (newer version of pitunnel only)Indicates that a tunnel is for a HTTPS service. Will create a https link on the custom tunnels list with a subdomain.
--registerRegister a new device. Only needs to be called on first use by install script.
--type TYPEUsed to identify system tunnels like device_monitor and terminal.
--http-auth HTTP_AUTHAdd HTTP authorization to external access for this tunnel: HTTP_AUTH=username:password
--quietQuite Mode. Doesn't output messages to standard out.
--persistMakes the tunnel stay active even after closing your terminal or rebooting.
--listLists persistent tunnels and their IDs.
--remove IDRemove a persistent tunnel with an ID.
Next: Mass Deployment