mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
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:
@@ -161,7 +161,8 @@ object WebInterfaceManager {
|
|||||||
|
|
||||||
config.staticFiles.add { staticFiles ->
|
config.staticFiles.add { staticFiles ->
|
||||||
if (ServerSubpath.isDefined()) staticFiles.hostedPath = ServerSubpath.normalized()
|
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
|
staticFiles.location = Location.EXTERNAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user