mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Update main.go
This commit is contained in:
@@ -26,12 +26,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type args struct {
|
type args struct {
|
||||||
Port string `arg:"-p" help:"web server port, default 8090"`
|
Port string `arg:"-p" help:"web server port (default 8090)"`
|
||||||
Ssl bool `help:"enables https"`
|
Ssl bool `help:"enables https"`
|
||||||
SslPort string `help:"web server ssl port, If not set, will be set to default 8091 or taken from db(if stored previously). Accepted if --ssl enabled."`
|
SslPort string `help:"web server ssl port, If not set, will be set to default 8091 or taken from db(if stored previously). Accepted if --ssl enabled."`
|
||||||
SslCert string `help:"path to ssl cert file. If not set, will be taken from db(if stored previously) or default self-signed certificate/key will be generated. Accepted if --ssl enabled."`
|
SslCert string `help:"path to ssl cert file. If not set, will be taken from db(if stored previously) or default self-signed certificate/key will be generated. Accepted if --ssl enabled."`
|
||||||
SslKey string `help:"path to ssl key file. If not set, will be taken from db(if stored previously) or default self-signed certificate/key will be generated. Accepted if --ssl enabled."`
|
SslKey string `help:"path to ssl key file. If not set, will be taken from db(if stored previously) or default self-signed certificate/key will be generated. Accepted if --ssl enabled."`
|
||||||
Path string `arg:"-d" help:"database dir path"`
|
Path string `arg:"-d" help:"database and config dir path"`
|
||||||
LogPath string `arg:"-l" help:"server log file path"`
|
LogPath string `arg:"-l" help:"server log file path"`
|
||||||
WebLogPath string `arg:"-w" help:"web access log file path"`
|
WebLogPath string `arg:"-w" help:"web access log file path"`
|
||||||
RDB bool `arg:"-r" help:"start in read-only DB mode"`
|
RDB bool `arg:"-r" help:"start in read-only DB mode"`
|
||||||
@@ -39,11 +39,11 @@ type args struct {
|
|||||||
DontKill bool `arg:"-k" help:"don't kill server on signal"`
|
DontKill bool `arg:"-k" help:"don't kill server on signal"`
|
||||||
UI bool `arg:"-u" help:"open torrserver page in browser"`
|
UI bool `arg:"-u" help:"open torrserver page in browser"`
|
||||||
TorrentsDir string `arg:"-t" help:"autoload torrents from dir"`
|
TorrentsDir string `arg:"-t" help:"autoload torrents from dir"`
|
||||||
TorrentAddr string `help:"Torrent client address, default :32000"`
|
TorrentAddr string `help:"Torrent client address, like 127.0.0.1:1337 (default :PeersListenPort)"`
|
||||||
PubIPv4 string `arg:"-4" help:"set public IPv4 addr"`
|
PubIPv4 string `arg:"-4" help:"set public IPv4 addr"`
|
||||||
PubIPv6 string `arg:"-6" help:"set public IPv6 addr"`
|
PubIPv6 string `arg:"-6" help:"set public IPv6 addr"`
|
||||||
SearchWA bool `arg:"-s" help:"search without auth"`
|
SearchWA bool `arg:"-s" help:"search without auth"`
|
||||||
MaxSize string `arg:"-m" help:"max allowed stream size"`
|
MaxSize string `arg:"-m" help:"max allowed stream size (in Bytes)"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (args) Version() string {
|
func (args) Version() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user