mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Add Absolute url config
This commit is contained in:
parent
fc062e55f0
commit
8c6cbe1f05
1
setup.go
1
setup.go
@ -96,6 +96,7 @@ func setup(c *caddy.Controller) error {
|
|||||||
FrontMatter: format,
|
FrontMatter: format,
|
||||||
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),
|
||||||
StyleSheet: conf.Styles,
|
StyleSheet: conf.Styles,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user