... | ... | @@ -7,13 +7,51 @@ Want to update your Lufi instance ? Have a look at the [update page](update). |
|
|
After [installing Carton](dependencies):
|
|
|
|
|
|
```
|
|
|
git clone https://git.framasoft.org/luc/lufi.git
|
|
|
git clone https://framagit.org/fiat-tux/hat-softwares/lufi.git
|
|
|
cd lufi
|
|
|
carton install --deployment
|
|
|
```
|
|
|
|
|
|
If you **don't** want to use the LDAP authentication system, add the following argument to the commands below:
|
|
|
|
|
|
```shell
|
|
|
--without=ldap
|
|
|
```
|
|
|
|
|
|
If you **don't** want to use the htpasswd authentication system, add the following argument to the commands below:
|
|
|
|
|
|
```shell
|
|
|
--without=htpasswd
|
|
|
```
|
|
|
|
|
|
If you want to use **SQLite**:
|
|
|
|
|
|
```shell
|
|
|
carton install --deployment --without=test --without=postgresql --without=mysql
|
|
|
```
|
|
|
|
|
|
If you want to use **PostgreSQL**:
|
|
|
|
|
|
```shell
|
|
|
carton install --deployment --without=test --without=sqlite --without=mysql
|
|
|
```
|
|
|
|
|
|
If you want to use **MySQL**:
|
|
|
```shell
|
|
|
carton install --deployment --without=test --without=sqlite --without=postgresql
|
|
|
```
|
|
|
|
|
|
Then:
|
|
|
|
|
|
```
|
|
|
cp lufi.conf.template lufi.conf
|
|
|
# Edit the configuration file
|
|
|
vi lufi.conf
|
|
|
```
|
|
|
|
|
|
The configuration file is full of options and self-documented.
|
|
|
|
|
|
There is the `contact` option (mandatory), where you have to put some way for the users to contact you, and the `report` where you have to put an email address or an URL to let people report illegal files.
|
|
|
|
|
|
Just read the self-documented configuration file, it's quite simple.
|
|
|
|
|
|
After configuring Lufi, you can start it from command line:
|
... | ... | @@ -94,7 +132,9 @@ start lufi |
|
|
```
|
|
|
## Reverse proxies
|
|
|
|
|
|
Lufi is served by `hypnotoad`, a production-ready web server, but there's a lot of chances that you want to serve other web sites on your server. Your best shot is to use Nginx.
|
|
|
Lufi is served by `hypnotoad`, a production-ready web server, but there's a lot of chances that you want to serve other web sites on your server. Your best shot is to use Nginx.
|
|
|
|
|
|
First uncomment line 13 of `lufi.conf`.
|
|
|
|
|
|
### Putting Lufi behind Nginx
|
|
|
|
... | ... | |