add useforwardedheaders to test nginx
MODIFY
HiddenWallet.ChaumianTumbler/Startup.cs
HiddenWallet.ChaumianTumbler/Startup.cs
@@ -11,6 +11,7 @@ using Microsoft.Extensions.Options;
using Microsoft.AspNetCore.SignalR;
using System.IO;
using Swashbuckle.AspNetCore.Swagger;
+using Microsoft.AspNetCore.HttpOverrides;
namespace HiddenWallet.ChaumianTumbler
{
@@ -42,6 +43,11 @@ namespace HiddenWallet.ChaumianTumbler
app.UseDeveloperExceptionPage();
}
+ app.UseForwardedHeaders(new ForwardedHeadersOptions
+ {
+ ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
+ });
+
app.UseSignalR(routes =>
{
routes.MapHub<TumblerHub>("chaumianTumbler");

add useforwardedheaders to test nginx