add addr path
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…
Reference in New Issue