You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
update setup to work with the most recent version of File manager
This commit is contained in:
10
setup.go
10
setup.go
@@ -104,13 +104,15 @@ func setup(c *caddy.Controller) error {
|
||||
Configs: []config.Config{
|
||||
config.Config{
|
||||
HugoEnabled: true,
|
||||
PathScope: conf.Root,
|
||||
FrontMatter: format,
|
||||
Root: http.Dir(conf.Root),
|
||||
User: &config.User{
|
||||
PathScope: conf.Root,
|
||||
FrontMatter: format,
|
||||
Root: http.Dir(conf.Root),
|
||||
StyleSheet: conf.Styles,
|
||||
},
|
||||
BaseURL: conf.BaseURL,
|
||||
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
|
||||
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
|
||||
StyleSheet: conf.Styles,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user