add X-Forwarded-Port in nginx reverse proxy for jetpack

jetpack require X-Forward for the port, or "requested method jetpack.jsonAPI does not exist"
ref: https://github.com/ViBiOh/docker-wordpress/issues/1
This commit is contained in:
Dick Tang
2017-07-18 15:58:46 +00:00
parent 6a4be98f19
commit 67486b8177

View File

@@ -56,6 +56,7 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;