[CONF] Made a single configuration file
This commit is contained in:
@@ -33,6 +33,8 @@ $ apt-get install g++ autoconf automake libboost-dev libboost-locale-dev libboos
|
||||
## Build
|
||||
|
||||
```sh
|
||||
$ git clone https://github.com/epoupon/lms.git lms
|
||||
$ cd lms
|
||||
$ autoreconf -vfi
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
@@ -52,51 +54,25 @@ $ make install
|
||||
This command requires root privileges
|
||||
|
||||
## Configuration
|
||||
LMS uses a config file for low level settings:
|
||||
- database file path, default is /var/lms/lms.db
|
||||
- TLS settings, default is none
|
||||
- listen address/port, default is 0.0.0.0 port 5081
|
||||
LMS uses a configuration file, installed in '/etc/lms.conf'
|
||||
It is recommended to edit this file and change the relevant settings (working directory, listen port, etc.)
|
||||
|
||||
Other settings are set using the web interface.
|
||||
By default, LMS will read its configuration in the file '/etc/lms.conf'
|
||||
|
||||
It is highly recommended to run LMS as a non root user. Therefore make sure the user has write permissions on the working directory.
|
||||
|
||||
## Running
|
||||
```sh
|
||||
$ /usr/bin/lms [config_file]
|
||||
$ lms [config_file]
|
||||
```
|
||||
LMS needs write access to the directory used for the database.
|
||||
It is highly recommended to run LMS as a non root user.
|
||||
Logs are output in the working directory, in the file 'lms.log'
|
||||
|
||||
To connect to LMS, just open your favorite browser and go to http://localhost:5081
|
||||
|
||||
## Mobile
|
||||
|
||||
Add the following code in your /etc/wt/wt_config.xml file:
|
||||
```
|
||||
<application-settings location="/usr/bin/lms">
|
||||
<progressive-bootstrap>true</progressive-bootstrap>
|
||||
</application-settings>
|
||||
```
|
||||
|
||||
## Setting up SSL materials (optional)
|
||||
Here is just a self signed certificate example, you could do use a CA if you want.
|
||||
|
||||
Generate a dh file:
|
||||
```sh
|
||||
$ openssl dhparam -out dh2048.pem 2048
|
||||
```
|
||||
Generate a self signed certificate:
|
||||
```sh
|
||||
$ openssl req -x509 -out cert.pem -keyout privkey.pem -newkey rsa:4096
|
||||
```
|
||||
Depending on your SSL parameters, you may be asked for the PEM passphrase to unlock the private key.
|
||||
|
||||
To connect to LMS, just open your favorite browser and go to https://localhost:5081
|
||||
|
||||
## Credits
|
||||
|
||||
- Wt (http://www.webtoolkit.eu/)
|
||||
- bootstrap3 (http://getbootstrap.com/)
|
||||
- libav project (https://www.libav.org/)
|
||||
- ffmpeg project (https://ffmpeg.org/)
|
||||
- Magick++ (http://www.imagemagick.org/Magick++/)
|
||||
- MetaBrainz (https://metabrainz.org/)
|
||||
|
||||
Reference in New Issue
Block a user