README: add deploy instructions

This commit is contained in:
Roman Shtylman
2016-07-09 17:22:14 -07:00
parent 965be6e1ff
commit f1fa607ad9
2 changed files with 20 additions and 0 deletions

View File

@@ -40,3 +40,19 @@ lt --host http://sub.example.tld:1234 --port 9000
You will be assigned a URL similar to `qdci.sub.example.com:1234`. You will be assigned a URL similar to `qdci.sub.example.com:1234`.
If your server is acting as a reverse proxy (i.e. nginx) and is able to listen on port 80, then you do not need the `:1234` part of the hostname for the `lt` client. If your server is acting as a reverse proxy (i.e. nginx) and is able to listen on port 80, then you do not need the `:1234` part of the hostname for the `lt` client.
## Deploy
You can deploy your own localtunnel server using the prebuilt docker image.
**Note** This assumes that you have a proxy in front of the server to handle the http(s) requests and forward them to the localtunnel server on port 3000. You can use our [localtunnel-nginx](https://github.com/localtunnel/nginx) so accomplish this.
If you do not want ssl support for your own tunnel (not recommended), then you can just run the below with `--port 80` instead.
```
docker run -d \
--restart always \
--name localtunnel \
--net host \
defunctzombie/localtunnel-server:latest --port 3000
```

View File

@@ -41,5 +41,9 @@ process.on('SIGINT', () => {
process.exit(); process.exit();
}); });
process.on('SIGTERM', () => {
process.exit();
});
// vim: ft=javascript // vim: ft=javascript