mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
parent
0e7e2d03c9
commit
d2d12fbac9
|
@ -215,6 +215,9 @@ namespace BililiveRecorder.Cli
|
|||
|
||||
services.AddSingleton(new BililiveRecorderFileExplorerSettings(sharedArguments.EnableFileBrowser));
|
||||
|
||||
sharedArguments.HttpBasicUser ??= Environment.GetEnvironmentVariable("BREC_HTTP_BASIC_USER");
|
||||
sharedArguments.HttpBasicPass ??= Environment.GetEnvironmentVariable("BREC_HTTP_BASIC_PASS");
|
||||
|
||||
if (sharedArguments.HttpBasicUser is not null || sharedArguments.HttpBasicPass is not null)
|
||||
{
|
||||
services.AddSingleton(new BasicAuthCredential(sharedArguments.HttpBasicUser ?? string.Empty, sharedArguments.HttpBasicPass ?? string.Empty));
|
||||
|
|
Loading…
Reference in New Issue
Block a user