Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
sailing:wetty [2023/12/18 12:41] – willy | sailing:wetty [2024/02/27 12:47] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== WeTTY ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | Create dedicated user: | ||
- | <code bash> | ||
- | > useradd -m wetty | ||
- | </ | ||
- | |||
- | Now install npm locally: | ||
- | <code bash> | ||
- | > su - wetty | ||
- | > curl -sL https:// | ||
- | > source .bashrc | ||
- | > nvm install 20 | ||
- | > npm -g i wetty --prefix ~/ | ||
- | </ | ||
- | |||
- | Now run: | ||
- | <code bash> | ||
- | > ./bin/wetty --host 127.0.0.1 --port 5522 --title ServerCasa --base / | ||
- | </ | ||
- | |||
- | Might need to install fontawesome manually: | ||
- | <code bash> | ||
- | > npm install --save @fortawesome/ | ||
- | > npm i --save @fortawesome/ | ||
- | > npm i --save @fortawesome/ | ||
- | </ | ||
- | |||
- | <file conf wetty.conf> | ||
- | location ^~ /wetty { | ||
- | proxy_pass http:// | ||
- | proxy_http_version 1.1; | ||
- | proxy_set_header Upgrade $http_upgrade; | ||
- | proxy_set_header Connection " | ||
- | proxy_read_timeout 43200000; | ||
- | |||
- | proxy_set_header X-Real-IP $remote_addr; | ||
- | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
- | proxy_set_header Host $http_host; | ||
- | proxy_set_header X-NginX-Proxy true; | ||
- | } | ||
- | </ | ||
- | |||
- | running WeTTY result in black screen on browser. | ||
- | |||
- | Note: [[https:// | ||
- | |||
- | |||