Renamed DisableValidation to DisableAuthentication
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ func Router() http.Handler {
|
|||||||
r.Use(checkRequiredParameters)
|
r.Use(checkRequiredParameters)
|
||||||
|
|
||||||
// Add validation middleware if not disabled
|
// Add validation middleware if not disabled
|
||||||
if !conf.Sonic.DisableValidation {
|
if !conf.Sonic.DisableAuthentication {
|
||||||
r.Use(authenticate)
|
r.Use(authenticate)
|
||||||
// TODO Validate version
|
// TODO Validate version
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -15,15 +15,14 @@ type sonic struct {
|
|||||||
IgnoredArticles string `default:"The El La Los Las Le Les Os As O A"`
|
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]([)"`
|
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"`
|
DisableAuthentication bool `default:"false"`
|
||||||
Password string `default:"wordpass"`
|
User string `default:"anyone"`
|
||||||
|
Password string `default:"wordpass"`
|
||||||
|
|
||||||
DisableDownsampling bool `default:"false"`
|
DisableDownsampling bool `default:"false"`
|
||||||
DisableValidation bool `default:"false"`
|
|
||||||
DownsampleCommand string `default:"ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -f mp3 -"`
|
DownsampleCommand string `default:"ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -f mp3 -"`
|
||||||
PlsIgnoreFolders bool `default:"true"`
|
PlsIgnoreFolders bool `default:"true"`
|
||||||
PlsIgnoredPatterns string `default:"^iCloud;\\~"`
|
PlsIgnoredPatterns string `default:"^iCloud;\\~"`
|
||||||
RunMode string `default:"dev"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var Sonic *sonic
|
var Sonic *sonic
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
DisableValidation = false
|
DisableAuthentication = false
|
||||||
User = "deluan"
|
User = "deluan"
|
||||||
Password = "wordpass"
|
Password = "wordpass"
|
||||||
DbPath = "/tmp/testDb"
|
DbPath = "/tmp/testDb"
|
||||||
|
|||||||
Reference in New Issue
Block a user