Use forwarded headers.
MODIFY
WalletWasabi.Backend/Startup.cs
WalletWasabi.Backend/Startup.cs
@@ -10,6 +10,7 @@ using Microsoft.Extensions.Logging;
using Swashbuckle.AspNetCore.Swagger;
using WalletWasabi.Logging;
using WalletWasabi.Interfaces;
+using Microsoft.AspNetCore.HttpOverrides;
namespace WalletWasabi.Backend
{
@@ -46,6 +47,11 @@ namespace WalletWasabi.Backend
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
+ app.UseForwardedHeaders(new ForwardedHeadersOptions
+ {
+ ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
+ });
+
app.UseStaticFiles();
// Enable middleware to serve generated Swagger as a JSON endpoint.

Use forwarded headers.