The Free Software Media System - Server Backend & API
Add socket support
David7367e667f780
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.csindex ef3ebe90cb..025de916f5 100644--- a/Jellyfin.Server/Program.cs+++ b/Jellyfin.Server/Program.cs@@ -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)).UseSerilog()