Skip to content

Commit e19c000

Browse files
committed
Add hints to /imageflow.debug for imageflow.toml config
1 parent e148337 commit e19c000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Imageflow.Server/DiagnosticsPage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public async Task Invoke(HttpContext context)
5959
else
6060
{
6161
s =
62-
"You can configure access to this page via ImageflowMiddlewareOptions.SetDiagnosticsPageAccess(allowLocalhost, password)\r\n\r\n";
62+
"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";
6363
if (options.DiagnosticsAccess == AccessDiagnosticsFrom.LocalHost)
6464
{
6565
s += "You can access this page from the localhost\r\n\r\n";
@@ -75,7 +75,7 @@ public async Task Invoke(HttpContext context)
7575
}
7676
else
7777
{
78-
s += "You can set a password via SetDiagnosticsPageAccess to access this page remotely.\r\n\r\n";
78+
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";
7979
}
8080
context.Response.StatusCode = 401; //Unauthorized
8181
}

0 commit comments

Comments
 (0)