From 2b89dd07a9e2af012e87665957ed4af57b6cf42f Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 7 Oct 2024 02:16:20 +0300 Subject: [PATCH] feat: output a token when generating a token for the header --- Endpoint/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index f038d3c..74adcd0 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -84,6 +84,7 @@ public class Program { secretForward.SecretForwardToken = GeneratorKey.GenerateAlphaNumeric(16); secretForward.SaveSetting(); + Console.WriteLine($"For the reverse proxy server to work correctly, use the header: '{secretForward.SecretForwardToken}-X-Forwarded-For'"); } options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;