From 52c61bd06f6e3ef0130e7a2d0255feca777a7b3f Mon Sep 17 00:00:00 2001 From: knackebrot Date: Sun, 16 Jan 2022 22:32:10 +0100 Subject: Add option to change unix socket permissions There is probably no way to do it when creating the socket --- .../Extensions/ConfigurationExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs') diff --git a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs index f9285c768..1fedf7205 100644 --- a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs +++ b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs @@ -49,6 +49,11 @@ namespace MediaBrowser.Controller.Extensions /// public const string UnixSocketPathKey = "kestrel:socketPath"; + /// + /// The permissions for the unix socket. + /// + public const string UnixSocketPermissionsKey = "kestrel:socketPermissions"; + /// /// Gets a value indicating whether the application should host static web content from the . /// @@ -97,5 +102,13 @@ namespace MediaBrowser.Controller.Extensions /// The unix socket path. public static string GetUnixSocketPath(this IConfiguration configuration) => configuration[UnixSocketPathKey]; + + /// + /// Gets the permissions for the unix socket from the . + /// + /// The configuration to read the setting from. + /// The unix socket permissions. + public static string GetUnixSocketPermissions(this IConfiguration configuration) + => configuration[UnixSocketPermissionsKey]; } } -- cgit v1.2.3