mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-10 04:02:57 +00:00
add addr path
This commit is contained in:
parent
8c6cbe1f05
commit
6b87fc2485
1
setup.go
1
setup.go
@ -97,6 +97,7 @@ func setup(c *caddy.Controller) error {
|
|||||||
Root: http.Dir(conf.Root),
|
Root: http.Dir(conf.Root),
|
||||||
BaseURL: conf.BaseURL,
|
BaseURL: conf.BaseURL,
|
||||||
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
|
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
|
||||||
|
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
|
||||||
StyleSheet: conf.Styles,
|
StyleSheet: conf.Styles,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user