Skip to content

Demo app for creating a web app on a P2P VPS client rental.

License

Notifications You must be signed in to change notification settings

P2PVPS/localtunnel-test-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocalTunnel Test Application

This is a test application that can be downloaded to a rented VPS in order to set up a web page or web application that is accessible by a public URL.

This application is based on the LocalTunnel application. The source code can be found here: https://github.com/localtunnel/localtunnel

Installation

You can watch a video on how to run this example program on a P2P VPS rented server

  1. After logging in, navigate to the storage directory:

cd /media/storage

  1. Install LocalTunnel in your VPS with the following command:

sudo npm install -g localtunnel

  1. After logging into your VM. Download this repository:

git clone https://github.com/P2PVPS/localtunnel-test-app

Occasionally, you'll get the following error:

fatal: could not create work tree dir 'localtunnel-test-app': Permission denied

You can fix this by giving yourself permission with this command:

sudo chown -R $USER /media/storage/

  1. Install the dependencies for your new web application:

npm install

  1. Run LocalTunnel and instruct it to forward port 3500. Note the URL it gives you. This is the URL where you can access the website your device is serving.

lt --host http://peerlink.fun --port 3500 &

  1. Run your web app:

npm start

HTTPS

A note on HTTPS and SSL encryption: Let's Encrypt will issue wildcard certs at the end of February 2018. At that point, the peerlink.fun server will be updated to allow HTTPS encryption from your rented device.

About

Demo app for creating a web app on a P2P VPS client rental.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages