Skip to content

Commit

Permalink
use json config
Browse files Browse the repository at this point in the history
  • Loading branch information
hffqyd committed Sep 18, 2024
1 parent e480b4e commit cce00a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Usage:
tw5server -a:localhost -p:8000 -d:dir -b:backup

-h this help
-c config file, json format, default tw5server.json
-a address, defautl "127.0.0.1"
-p port, default 8000
-d directory to serve, default `current dir`
Expand Down
9 changes: 9 additions & 0 deletions tw5server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"address": "127.0.0.1",
"port": 8000,
"server_path": "./",
"backup": "backup",
"title": "TW5 server",
"log": false,
"max_body": 100
}

0 comments on commit cce00a1

Please sign in to comment.