mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-19 16:46:58 +00:00
Fix config.BasePath
This commit is contained in:
parent
0695e3f777
commit
f38649f8b8
@ -56,8 +56,9 @@ func readConfig(configFile string) *configData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Normalize base path.
|
// Normalize base path.
|
||||||
|
config.BasePath = strings.Trim(config.BasePath, "/")
|
||||||
if config.BasePath != "" {
|
if config.BasePath != "" {
|
||||||
config.BasePath = "/" + strings.Trim(config.BasePath, "/")
|
config.BasePath = "/" + config.BasePath
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read password from file.
|
// Read password from file.
|
||||||
|
Loading…
Reference in New Issue
Block a user