configure for nginx
MODIFY
HiddenWallet.ChaumianTumbler/Program.cs
HiddenWallet.ChaumianTumbler/Program.cs
@@ -29,13 +29,10 @@ namespace HiddenWallet.ChaumianTumbler
{
await Global.InitializeAsync();
+ var endPoint = "http://localhost:80/";
using (var host = WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
- .UseKestrel(options =>
- {
- // listen to requests from outside the local machine
- options.Listen(IPAddress.Any, 80);
- })
+ .UseUrls(endPoint)
.Build())
{
await host.RunAsync();

MODIFY
HiddenWallet.ChaumianTumbler/Startup.cs
HiddenWallet.ChaumianTumbler/Startup.cs
@@ -43,6 +43,11 @@ namespace HiddenWallet.ChaumianTumbler
app.UseDeveloperExceptionPage();
}
+ app.UseForwardedHeaders(new ForwardedHeadersOptions
+ {
+ ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
+ });
+
app.UseSignalR(routes =>
{
routes.MapHub<TumblerHub>("chaumianTumbler");

configure for nginx