feat: output a token when generating a token for the header
This commit is contained in:
parent
1c981fb7bf
commit
2b89dd07a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user