How to install ngrok in wsl for activepieces
To install ngrok in your wsl system, go to your wsl and open the terminal.
Step 1: Download the ngrok zip file
Run the following commands:
cd ~
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-stable-linux-amd64.zip
Step 2: Unzip the file
sudo apt update
sudo apt install unzip -y
unzip ngrok-stable-linux-amd64.zip
This will extract a file called
ngrok
.Step 3: Move ngrok
to a system path
sudo mv ngrok /usr/local/bin
You can now run
ngrok
from anywhere in the terminal.Step 4: Connect your ngrok account
If you don't have an account, sign up here: https://dashboard.ngrok.com/signup
Then get your authtoken from: https://dashboard.ngrok.com/get-started/setup
Copy the token and run:
ngrok config add-authtoken YOUR_AUTHTOKEN_HERE
Example:
ngrok config add-authtoken 1h3JKiO9abcdXYZ1234EXAMPLE
Step 5: Start ngrok
use below command to start ngrok
ngrok http 4200
Now localhost:4200 can be accessible in https://156858be73e9.ngrok-free.ap
For accessing activepieces through ngrok URL, we have to do below changes.
In env file, add the URL generated like below
In vite.config.ts file add allowedhosts: true like below
Now, start the activepieces with npm start command, we should able to access the activepieces through the ngrok url.
Comments
Post a Comment