From a36dda0b236282c4d1ff79fb1174e834859fa1d4 Mon Sep 17 00:00:00 2001 From: YouROK <8YouROK8@mail.ru> Date: Sun, 26 Mar 2023 19:50:34 +0300 Subject: [PATCH] add cmd options --- README.md | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ee4623d..8d3d8e8 100644 --- a/README.md +++ b/README.md @@ -32,17 +32,39 @@ path/to/Android/sdk/ndk/ver/toolchains/llvm/prebuilt/platform # ### Server args: #### Usage -TorrServer [--port PORT] [--path PATH] [--logpath LOGPATH] [--rdb] [--httpauth] [--dontkill] [--ui] +TorrServer-darwin-arm64 [--port PORT] [--path PATH] [--logpath LOGPATH] [--weblogpath WEBLOGPATH] [--rdb] [--httpauth] [--dontkill] [--ui] [--torrentsdir TORRENTSDIR] [--torrentaddr TORRENTADDR] [--pubipv4 PUBIPV4] [--pubipv6 PUBIPV6] [--searchwa] #### Options -* --port PORT, -p PORT web server port -* --path PATH, -d PATH database and settings path -* --logpath LOGPATH, -l LOGPATH log path -* --rdb, -r start in read-only DB mode -* --httpauth, -a http auth on all requests -* --dontkill, -k dont kill server on signal -* --ui, -u run page torrserver in browser -* --version display version and exit +* --port PORT, -p PORT + * web server port, default 8090 +* --path PATH, -d PATH + * database dir path +* --logpath LOGPATH, -l LOGPATH + * server log file path +* --weblogpath WEBLOGPATH, -w WEBLOGPATH + * web access log file path +* --rdb, -r + * start in read-only DB mode +* --httpauth, -a + * enable http auth on all requests +* --dontkill, -k + * don't kill server on signal +* --ui, -u + * open torrserver page in browser +* --torrentsdir TORRENTSDIR, -t TORRENTSDIR + * autoload torrents from dir +* --torrentaddr TORRENTADDR + * Torrent client address, default :32000 +* --pubipv4 PUBIPV4, -4 PUBIPV4 + * set public IPv4 addr +* --pubipv6 PUBIPV6, -6 PUBIPV6 + * set public IPv6 addr +* --searchwa, -s + * search without auth +* --help, -h + * display this help and exit +* --version + * display version and exit #