Ghost Docker Container Breaking

I am using the Ghost docker on Unraid, this happens with either “official” version. I am also using Nginx Reverse Proxy and Cloudflare.

When “url” variable is set to https://url.com and there is no custom Nginx config, I end up getting “too many redirects” in browser. If I go into docker and change the “url” to http, then I am able to get in using my custom domain but cannot see the preview images.

Then, I changed my Nginx config to:

    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header HOST $http_host;
        proxy_set_header X-NginX-Proxy true;
	proxy_set_header X-Forwarded-Proto https;
        proxy_pass http://localhost:2368;
        proxy_redirect off;
    }

Now, I am able to use https normally and see previews in the admin dashboard but the previews and website now look like this:

I have tried:

  1. Deleting all appdata, fresh installing
  2. Creating new databases/using different ones
  3. Using different domain names
  4. Using different docker containers

I feel like I’m almost there, thank you for your help ahead of time.

Check your browser’s console for errors. I’m guessing this is perhaps a mixed http/https error? If so, check your config file for an http vs https discrepancy in the name of the server.

Error with Permissions-Policy header: Unrecognized feature: 'attribution-reporting'.
Error with Permissions-Policy header: Unrecognized feature: 'run-ad-auction'.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'private-state-token-redemption'.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'private-state-token-issuance'.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'join-ad-interest-group'.
Error with Permissions-Policy header: Unrecognized feature: 'browsing-topics'.
blog.thelqh.com/:167 
        
        
       GET https://url.com/public/cards.min.css?v=51d40c92db net::ERR_TOO_MANY_REDIRECTS
blog.thelqh.com/:9 
        
        
       GET https://url.com/assets/built/screen.css?v=51d40c92db net::ERR_TOO_MANY_REDIRECTS
blog.thelqh.com/:10 
        
        
       GET https://url.com/assets/built/source.js?v=51d40c92db net::ERR_TOO_MANY_REDIRECTS
blog.thelqh.com/:168 
        
        
       GET https://url.com/public/member-attribution.min.js?v=51d40c92db net::ERR_TOO_MANY_REDIRECTS
blog.thelqh.com/:166 
        
        
       GET https://url/public/cards.min.js?v=51d40c92db net::ERR_TOO_MANY_REDIRECTS
blog.thelqh.com/:1 Error handling response: TypeError: Cannot set properties of null (setting 'textContent')
    at chrome-extension://mobpimjmmonkghndllikpdgpapkfckje/popup.js:19:32
favicon.ico:1 
        
        
       GET https://url/favicon.ico net::ERR_TOO_MANY_REDIRECTS

I see there are errors happening in the background even though the site loads. If I go into Nginx and use

proxy_set_header X-Forwarded-Proto $scheme;

instead of https, it gives me ERR_TOO_MANY_REDIRECTS

I have it set to https in config and Nginx, should I look somewhere else? Thank you!

I think you’re going to need to post your config.production.json (minus secrets) and relevant nginx files to get help. :)

I’m /guessing/ your have your ghost url set incorrectly (or haven’t restarted since you changed it).