- Wetty is great !
- https://github.com/krishnasrinivas/wetty
Wetty : Ubuntu, and Let's Encrypt (letsencrypt)
Ubuntu doesn't use upstart
anymore, but systemd
instead,
so /usr/local/lib/node_modules/wetty/bin/wetty.conf
is useless.
Solution : https://github.com/krishnasrinivas/wetty/issues/44#issuecomment-179102722
Find wetty.js
:
sudo updatedb
locate wetty.js
Create the file : /etc/systemd/system/wetty.service
(and change the path of wetty.js
if needed)
[Unit]
Description=Wetty - Web TTY
After=network.target auditd.service
[Service]
ExecStart=/usr/local/lib/node_modules/wetty/bin/wetty.js -p 3000 --sslkey /etc/letsencrypt/live/my.domain.tld/privkey.pem --sslcert /etc/letsencrypt/live/my.domain.tld/cert.pem
Restart=always
[Install]
WantedBy=multi-user.target
Then
sudo service wetty restart