From e19c000d47177ae589ce021365858d3618fe598b Mon Sep 17 00:00:00 2001 From: Lilith River Date: Tue, 27 Jun 2023 21:40:34 -0600 Subject: [PATCH] Add hints to /imageflow.debug for imageflow.toml config --- src/Imageflow.Server/DiagnosticsPage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Imageflow.Server/DiagnosticsPage.cs b/src/Imageflow.Server/DiagnosticsPage.cs index 9f8bc290..19b6501c 100644 --- a/src/Imageflow.Server/DiagnosticsPage.cs +++ b/src/Imageflow.Server/DiagnosticsPage.cs @@ -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"; @@ -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 }