docs(server): documentation about server configuration
This commit is contained in:
parent
debaa05920
commit
3eb898db9b
@ -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
|
||||
|
||||

|
||||
|
27
docs/SERVER.md
Normal file
27
docs/SERVER.md
Normal 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
|
Loading…
Reference in New Issue
Block a user