mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add socket support
This commit is contained in:
parent
172203b5cc
commit
7367e667f7
@ -343,6 +343,21 @@ namespace Jellyfin.Server
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bind to unix socket (only on OSX and Linux)
|
||||||
|
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
|
{
|
||||||
|
// TODO: allow configuration of socket path
|
||||||
|
var socketPath = $"{appPaths.DataPath}/socket.sock";
|
||||||
|
// Workaround for https://github.com/aspnet/AspNetCore/issues/14134
|
||||||
|
if (File.Exists(socketPath))
|
||||||
|
{
|
||||||
|
File.Delete(socketPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
options.ListenUnixSocket(socketPath);
|
||||||
|
_logger.LogInformation($"Kestrel listening to unix socket {socketPath}");
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.ConfigureAppConfiguration(config => config.ConfigureAppConfiguration(commandLineOpts, appPaths, startupConfig))
|
.ConfigureAppConfiguration(config => config.ConfigureAppConfiguration(commandLineOpts, appPaths, startupConfig))
|
||||||
.UseSerilog()
|
.UseSerilog()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user