add addr path
This commit is contained in:
parent
8c6cbe1f05
commit
6b87fc2485
1 changed files with 1 additions and 0 deletions
1
setup.go
1
setup.go
|
|
@ -97,6 +97,7 @@ func setup(c *caddy.Controller) error {
|
|||
Root: http.Dir(conf.Root),
|
||||
BaseURL: conf.BaseURL,
|
||||
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
|
||||
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
|
||||
StyleSheet: conf.Styles,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue