add addr path

This commit is contained in:
Henrique Dias 2016-07-01 15:51:59 +01:00
parent 8c6cbe1f05
commit 6b87fc2485

View File

@ -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,
},
},