Localtunnel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
Type=simple | Type=simple | ||
Restart=on-failure | Restart=on-failure | ||
ExecStart=lt - | ExecStart=lt -p 80 -s academia-chorke | ||
TimeoutStopSec=20 | TimeoutStopSec=20 | ||
KillMode=process | KillMode=process |
Revision as of 09:14, 25 January 2024
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=${USER}
Type=simple
Restart=on-failure
ExecStart=lt -p 80 -s 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
| ||