Upgrade from 5 to 6 using Portainer

Wanted to come back around and give an update. I ended up just changing ghost:5-alpine to ghost:6-alpine.

This worked fine for the Ghost application, obviously it didn’t include the new analytics; (I don’t mind as I use plausible when needed.

Once I upgraded, the Network tab gave an error. Once I added the following to my nginx conf for the site, that cleared up and worked as expected.

location ~ /.ghost/activitypub/* {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $http_host;
  add_header X-Content-Type-Options "nosniff";
  proxy_ssl_server_name on;
  proxy_pass https://ap.ghost.org;
}

location ~ /.well-known/(webfinger|nodeinfo) {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $http_host;
  add_header X-Content-Type-Options "nosniff";
  proxy_ssl_server_name on;
  proxy_pass https://ap.ghost.org;
}

I did try various settings to get the new activitypub and activitypub-migrate containers to work, but I didn’t. I might revisit it if I exceed the limits which I expect I won’t.

2 Likes