Make the public dir live inside data to make volume mounting easier

This commit is contained in:
Gabe Kangas
2023-01-17 17:03:28 -08:00
parent e984f14089
commit 44fe52fc5a
3 changed files with 19 additions and 17 deletions

View File

@@ -386,7 +386,7 @@ func Start() error {
})
// Optional public static files
http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir("./public"))))
http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir(config.PublicFilesPath))))
port := config.WebServerPort
ip := config.WebServerIP