I’m seeing very similar issues to this post Ghost Docker Container Breaking. Also on unraid, but using ghost behind swag, which uses nginx under the hood. But the swag clearly isn’t the problem, because trying to access on the local ip fails with the same redirects, except for me it’s a forced http to https redirect that then fails with
An error occurred during a connection to 192.168.1.169:2368. SSL received a record that exceeded the maximum permissible length.
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
I do not ever change the config for this website, it broke after an automatic docker image update while I was on vacation, so I am pretty positive it’s not the config.
cat config.development.json
{
"url": "http://localhost:2368",
"server": {
"port": 2368,
"host": "::"
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}
cat config.production.json
{
"url": "http://localhost:2368",
"server": {
"port": 2368,
"host": "::"
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}
the docker command that gets run is
docker run
-d
--name='Ghost'
--net='host'
--pids-limit 2048
-e TZ="America/Los_Angeles"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Venus"
-e HOST_CONTAINERNAME="Ghost"
-e 'database__connection__host'='192.168.1.169'
-e 'database__connection__user'='ghost'
-e 'database__connection__password'='redacted'
-e 'database__connection__database'='ghost'
-e 'url'='http://ghost.redacted.com'
-e 'mail__transport'='SMTP'
-e 'mail__options__service'='Mailgun'
-e 'mail__options__auth__user'='postmaster@mg.redacted.com'
-e 'mail__options__auth__pass'='redacted'
-e 'database__client'='mysql'
-e 'TCP_PORT_2368'='2368'
-e 'NODE_ENV'='production'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.icon='https://raw.githubusercontent.com/cheesemarathon/docker-templates/master/images/Ghost.png'
-v '/mnt/user/appdata/ghost':'/var/lib/ghost/content':'rw' 'ghost'
changing the url to https doesn’t change the resulting config.development.json or production json url at all.
Was something changed in a recent ghost image that forces SSL even when it shouldn’t have it?