Setting url env. var as https address redirects to localhost


#1

Hello. As the title states, I got trouble with a latest ghost fresh install.
With my docker run command being:
docker run --restart="always" -e url=http://blog.morrolinux.it -e GHOST_URL=https://blog.morrolinux.it -e NODE_ENV=production --name blog -p 2368:2368 -v /srv/httpd/ZeroBlog/ghostblog/content/:/var/lib/ghost/content -d ghost
everything runs smoothly (except for a mixed content issue which then leads to the browser not showing posts thumbnails)
So I got suggested to set https url in the env var, but as far as I change the docker run command to:
docker run --restart="always" -e url=https://blog.morrolinux.it -e GHOST_URL=https://blog.morrolinux.it -e NODE_ENV=production --name blog2 -p 2368:2368 -v /srv/httpd/ZeroBlog/ghostblog/content/:/var/lib/ghost/content -d ghost (simply added an s to make it https)
It becomes impossibile to visit the site, as i get redirected to https://127.0.0.1:2368/

here’s my blog: https://blog.morrolinux.it
ghost 2.14 (latest)
running under docker, nginx frontend


#2

Hey @Morrolinux! Ghost team doesn’t support any docker images. Depending on which docker image you are running, would suggest opening an issue in the repository for the image itself :wink:


#3

So… here’s the repo https://hub.docker.com/_/ghost but I don’t see any “issue” section to open a ticket (?)
Besides, this really looks like a ghost-side issue to me, given that the docker part seem to be working fine.