Skip to content

Commit cce00a1

Browse files
committed
use json config
1 parent e480b4e commit cce00a1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Usage:
2020
tw5server -a:localhost -p:8000 -d:dir -b:backup
2121

2222
-h this help
23+
-c config file, json format, default tw5server.json
2324
-a address, defautl "127.0.0.1"
2425
-p port, default 8000
2526
-d directory to serve, default `current dir`

tw5server.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"address": "127.0.0.1",
3+
"port": 8000,
4+
"server_path": "./",
5+
"backup": "backup",
6+
"title": "TW5 server",
7+
"log": false,
8+
"max_body": 100
9+
}

0 commit comments

Comments
 (0)