Use canonical path for static files directory (#1698)

On mac the temp system folder is a symlink which jetty does not allow by default due to security reasons.
This caused the webui files to not get served on mac.
This commit is contained in:
schroda
2025-10-04 21:12:52 +02:00
committed by GitHub
parent b92f9a2e4d
commit 9437e4243a

View File

@@ -161,7 +161,8 @@ object WebInterfaceManager {
config.staticFiles.add { staticFiles ->
if (ServerSubpath.isDefined()) staticFiles.hostedPath = ServerSubpath.normalized()
staticFiles.directory = applicationDirs.webUIServe
// Use canonical path to avoid Jetty alias issues
staticFiles.directory = File(applicationDirs.webUIServe).canonicalPath
staticFiles.location = Location.EXTERNAL
}