Ghost Blog Down

For some strange reason my NGINX reverse proxy stopped working on the Ghost installation. After much digging around turns out the port had changed from 2368 to 2369. All this happened without any changes from my side, still not sure why.

If you start seeing 502 Bad Gateway and NGINX logs start showing you 'failed (111: Connection refused) while connecting to upstream', check to see if your reverse proxy has any issue.

location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_pass http://127.0.0.1:2369;

    }