mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01: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 ->
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user