Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmisek committed Jan 11, 2021
1 parent 864a047 commit 3b3b5b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PeachPied.WordPress.AspNetCore/RequestDelegateExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static void Apply(Context ctx, WordPressConfig config, WpLoader loader)

// workaround HTTPS under proxy,
// set $_SERVER['HTTPS'] = 'on'
// https://wordpress.org/support/article/administration-over-ssl/#using-a-reverse-proxy
if (ctx.IsWebApplication && ctx.GetHttpContext().Request.Headers["X-Forwarded-Proto"] == "https")
{
ctx.Server["HTTPS"] = "on";
Expand Down

0 comments on commit 3b3b5b9

Please sign in to comment.