Localtunnel

From Chorke Wiki
Revision as of 07:00, 25 January 2024 by Shahed (talk | contribs) (Created page with " source ~/.nvm/nvm.sh && nvm use node npm install -g localtunnel ==Linux Service== {| | valign="top" | <source lang="bash"> cat << EOF | sudo tee /etc/systemd/system/academi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
source ~/.nvm/nvm.sh && nvm use node
npm install -g localtunnel

Linux Service

cat << EOF | sudo tee /etc/systemd/system/academia-lt.service >>/dev/null
[Unit]
Description=Academia Localtunnel Daemon
After=syslog.target network.target

[Service]
User=shahed
Type=simple
Restart=on-failure
ExecStart=lt --host 127.0.0.1 --port 80 --subdomain academia-chorke
TimeoutStopSec=20
KillMode=process

[Install]
WantedBy=multi-user.target

EOF
sudo systemctl daemon-reload


sudo systemctl enable  --now academia-lt
     systemctl status  academia-lt


sudo systemctl disable --now academia-lt
     systemctl status  academia-lt


sudo systemctl restart academia-lt
     systemctl status  academia-lt


sudo systemctl stop    academia-lt
     systemctl status  academia-lt

open https://academia-chorke.loca.lt  &>/dev/null &
open https://loca.lt/mytunnelpassword &>/dev/null &

References