mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add store ssl port to db
This commit is contained in:
@@ -18,12 +18,17 @@ func Start(port, sslport, sslCert, sslKey string, sslEnabled, roSets, searchWA b
|
||||
// set settings ssl enabled
|
||||
settings.Ssl = sslEnabled
|
||||
if sslport == "" {
|
||||
userSSlPort := strconv.Itoa(settings.BTsets.SslPort)
|
||||
if userSSlPort != "0" {
|
||||
sslport = userSSlPort
|
||||
dbSSlPort := strconv.Itoa(settings.BTsets.SslPort)
|
||||
if dbSSlPort != "0" {
|
||||
sslport = dbSSlPort
|
||||
} else {
|
||||
sslport = "8091"
|
||||
}
|
||||
} else { // store ssl port from params to DB
|
||||
dbSSlPort, err := strconv.Atoi(sslport)
|
||||
if err == nil {
|
||||
settings.BTsets.SslPort = dbSSlPort
|
||||
}
|
||||
}
|
||||
// check if ssl cert and key files exist
|
||||
if sslCert != "" && sslKey != "" {
|
||||
|
||||
Reference in New Issue
Block a user