diff options
Diffstat (limited to 'BackEnd/Timeline/Startup.cs')
-rw-r--r-- | BackEnd/Timeline/Startup.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Startup.cs b/BackEnd/Timeline/Startup.cs index fa4968d7..73bcfa0c 100644 --- a/BackEnd/Timeline/Startup.cs +++ b/BackEnd/Timeline/Startup.cs @@ -59,6 +59,24 @@ namespace Timeline _enableForwardedHeaders = ApplicationConfiguration.GetBoolConfig(configuration, ApplicationConfiguration.EnableForwardedHeadersKey, false);
_forwardedHeadersAllowedProxyHosts = Configuration.GetValue<string?>(ApplicationConfiguration.ForwardedHeadersAllowedProxyHostsKey);
+
+ if (_enableForwardedHeaders)
+ {
+ Console.ForegroundColor = ConsoleColor.Green;
+ Console.WriteLine("Forwarded headers enabled.");
+ Console.ResetColor();
+
+ Console.ForegroundColor = ConsoleColor.Yellow;
+ if (_forwardedHeadersAllowedProxyHosts is not null)
+ {
+ Console.WriteLine("Allowed proxy hosts: {0}", _forwardedHeadersAllowedProxyHosts);
+ }
+ else
+ {
+ Console.WriteLine("Allowed proxy hosts settings is default");
+ }
+ Console.ResetColor();
+ }
}
public IWebHostEnvironment Environment { get; }
|