Renamed DisableValidation to DisableAuthentication

This commit is contained in:
Deluan 2020-01-09 11:48:09 -05:00 committed by Deluan Quintão
parent 0388d67817
commit ff5b91da54
4 changed files with 5 additions and 21 deletions

View File

@ -21,7 +21,7 @@ func Router() http.Handler {
r.Use(checkRequiredParameters)
// Add validation middleware if not disabled
if !conf.Sonic.DisableValidation {
if !conf.Sonic.DisableAuthentication {
r.Use(authenticate)
// TODO Validate version
}

View File

@ -1,15 +0,0 @@
appname = github.com/cloudsonic/sonic-server
serverName = CloudSonic
runMode = dev
autoRender = false
copyRequestBody = true
enableAdmin = false
apiVersion = 1.8.0
[dev]
enableAdmin = true
[test]
enableAdmin = false
httpPort = 8081

View File

@ -15,15 +15,14 @@ type sonic struct {
IgnoredArticles string `default:"The El La Los Las Le Les Os As O A"`
IndexGroups string `default:"A B C D E F G H I J K L M N O P Q R S T U V W X-Z(XYZ) [Unknown]([)"`
User string `default:"anyone"`
Password string `default:"wordpass"`
DisableAuthentication bool `default:"false"`
User string `default:"anyone"`
Password string `default:"wordpass"`
DisableDownsampling bool `default:"false"`
DisableValidation bool `default:"false"`
DownsampleCommand string `default:"ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -f mp3 -"`
PlsIgnoreFolders bool `default:"true"`
PlsIgnoredPatterns string `default:"^iCloud;\\~"`
RunMode string `default:"dev"`
}
var Sonic *sonic

View File

@ -1,4 +1,4 @@
DisableValidation = false
DisableAuthentication = false
User = "deluan"
Password = "wordpass"
DbPath = "/tmp/testDb"