Fix paths to static files on details pages of standalone version (#55)

This commit is contained in:
Arjan H
2022-11-30 19:45:45 +01:00
parent 6356aa4c17
commit 7db3efe0ba

View File

@@ -2968,6 +2968,11 @@ func main() {
if viper.GetBool("standalone") {
sfs = http.FileServer(http.FS(staticFiles))
r.PathPrefix("/accounts/static/").Handler(http.StripPrefix("/accounts", sfs))
r.PathPrefix("/authz/static/").Handler(http.StripPrefix("/authz", sfs))
r.PathPrefix("/challenges/static/").Handler(http.StripPrefix("/challenges", sfs))
r.PathPrefix("/certificates/static/").Handler(http.StripPrefix("/certificates", sfs))
r.PathPrefix("/orders/static/").Handler(http.StripPrefix("/orders", sfs))
r.PathPrefix("/static/").Handler(sfs)
}
if isDev {