docs(server): documentation about server configuration

This commit is contained in:
Alexey Kasyanchuk 2018-04-27 16:55:41 +03:00
parent debaa05920
commit 3eb898db9b
2 changed files with 29 additions and 0 deletions

View File

@ -54,6 +54,8 @@ npm run server
Now you can get access to web interface on 8095 port: http://localhost:8095
[More about configuration](docs/SERVER.md)
## Screenshots
![Main Window](docs/img/screen_1.png)

27
docs/SERVER.md Normal file
View File

@ -0,0 +1,27 @@
## Data directory configuration
File package.json contains path to data directory, you can move this folder to any other (by default data directory for web server same as root folder with package.json).
```json
{
...
"serverDataDirectory": "./",
...
}
```
This directory always contain logs and other configuration entities.
## Configuration
After server start in root folder will created rats.json - main configuration files. You can configurate port and database path in it:
```json
{
"dbPath": "e:\\Projects\\rats\\db",
"peerId": "qpxh1prxtvdp149dhw0nu",
"httpPort": 8095
}
```
Where "httpPort" port which listen http server and "dbPath" path to database folder with collection of torrents