Add useforwardedheaders needed for reverse proxy
MODIFY
WalletWasabi.Backend/Startup.cs
WalletWasabi.Backend/Startup.cs
@@ -13,6 +13,7 @@ using Microsoft.Extensions.Options;
using Swashbuckle.AspNetCore.Swagger;
using WalletWasabi.Logging;
using WalletWasabi.Interfaces;
+using Microsoft.AspNetCore.HttpOverrides;
namespace WalletWasabi.Backend
{
@@ -49,6 +50,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 // Needed for reverse proxy
+ {
+ ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
+ });
+
// Enable middleware to serve generated Swagger as a JSON endpoint.
app.UseSwagger();

Add useforwardedheaders needed for reverse proxy