|
|
## Installation of Lstu
|
|
|
|
|
|
```shell
|
|
|
git clone https://framagit.org/luc/lstu.git
|
|
|
cd lstu
|
|
|
make installdeps
|
|
|
cp lstu.conf.template lstu.conf
|
|
|
# Edit the configuration file
|
|
|
vi lstu.conf
|
|
|
```
|
|
|
|
|
|
The configuration file is self-documented.
|
|
|
|
|
|
### Launch manually
|
|
|
|
|
|
This is good for test, not for production.
|
|
|
|
|
|
```
|
|
|
# start it
|
|
|
carton exec hypnotoad script/lstu
|
|
|
# reload it while running (yep, same command)
|
|
|
carton exec hypnotoad script/lstu
|
|
|
# stop it
|
|
|
carton exec hypnotoad -s script/lstu
|
|
|
```
|
|
|
|
|
|
Yup, that's all, it will listen at "http://127.0.0.1:8080".
|
|
|
|
|
|
For more options (interfaces, user, etc.), change the configuration in `lstu.conf` (have a look at http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad#SETTINGS for the available options).
|
|
|
|
|
|
## Init files
|
|
|
|
|
|
### Systemd
|
|
|
|
|
|
```
|
|
|
sudo su
|
|
|
cp utilities/lstu.service /etc/systemd/system/
|
|
|
vi /etc/systemd/system/lstu.service
|
|
|
systemctl daemon-reload
|
|
|
systemctl enable lstu.service
|
|
|
systemctl start lstu.service
|
|
|
```
|
|
|
|
|
|
### SysVinit
|
|
|
|
|
|
```
|
|
|
sudo su
|
|
|
cp utilities/lstu.default /etc/default/lstu
|
|
|
vi /etc/default/lstu
|
|
|
cp utilities/lstu.init /etc/init.d/lstu
|
|
|
update-rc.d lstu defaults
|
|
|
service lstu start
|
|
|
```
|
|
|
|
|
|
## Reverse proxy
|
|
|
|
|
|
For Nginx, use `utilities/lstu.nginx` as a template for your virtualhost configuration.
|
|
|
|
|
|
For Apache, use `utilities/lstu.apache` as a template for your virtualhost configuration.
|
|
|
Please note that this Apache template comes [from the community](https://framagit.org/luc/lstu/issues/12) and that there is **no official support for Apache**.
|
|
|
|
|
|
-------
|
|
|
|
|
|
Go back to [wiki's homepage](home). |
|
|
\ No newline at end of file |