Local Tunnelling and Nginx Setup
Exposing local Protocol-server to Internet
Setting up LocalTunnel when there is no DNS tool available
Note: use this when you don't have any DNS URLs to assign
Install local tunnel globally using
npm install -g localtunnel
.Run
lt --port <BAP/BPP network port> --subdomain <any subdomain>
for both BAP and BPP networks (use the same subdomain each time for consistency). [Example:lt --port 5001 --subdomain beckn-bap-network
]
Note: Whenever the system or LocalTunnel is restarted the the generated localtunnel DNS will be changed. We have to register the newly generated local-tunnel DNS after restarting in Registry and default.yml files respectively.
Nginx in Production System (Ubuntu) if you have DNS Tools
Nginx is used to
Update your system:
sudo apt update
.Install Nginx:
sudo apt-get install nginx -y
.Navigate to the Nginx configuration directory:
cd /etc/nginx/conf.d
.Create a new configuration file:
sudo nano {enter-any-name.conf}
. Enter the configuration to map your DNS with the port of BAP/BPP Network&Client.
Example Configuration:
Replace example.domain.com
and port
with your desired values in multiple places.
Obtain an SSL certificate for your domain and configure it on your machine.
Last updated