Skip to content

Commit

Permalink
Add hints to /imageflow.debug for imageflow.toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jun 28, 2023
1 parent e148337 commit e19c000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Imageflow.Server/DiagnosticsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task Invoke(HttpContext context)
else
{
s =
"You can configure access to this page via ImageflowMiddlewareOptions.SetDiagnosticsPageAccess(allowLocalhost, password)\r\n\r\n";
"You can configure access to this page via the imageflow.toml [diagnostics] section, or in C# via ImageflowMiddlewareOptions.SetDiagnosticsPageAccess(allowLocalhost, password)\r\n\r\n";
if (options.DiagnosticsAccess == AccessDiagnosticsFrom.LocalHost)
{
s += "You can access this page from the localhost\r\n\r\n";
Expand All @@ -75,7 +75,7 @@ public async Task Invoke(HttpContext context)
}
else
{
s += "You can set a password via SetDiagnosticsPageAccess to access this page remotely.\r\n\r\n";
s += "You can set a password via imageflow.toml [diagnostics] allow_with_password='' or in C# with SetDiagnosticsPageAccess to access this page remotely.\r\n\r\n";
}
context.Response.StatusCode = 401; //Unauthorized
}
Expand Down

0 comments on commit e19c000

Please sign in to comment.