I have installed Ghost on a cloud server with Ubuntu as OS via the Ghost CLI (incl. NGINX). Everything is working well using my Windows-PC. Also the administration of Ghost is working without any problem.
But when I want to login to the administration URL from my iMAC, I always get the Response “There was a problem on the server”.
The Ghost logfile shows the entries
“WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address”.
“Authorization failed”.
“Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication.”
“Error ID: b158ed60-31a7-11f0-a482-879217fe456b”.
I did already some investigation and I have already deactivated all security settings, which normally blocks some cookies, but without success..
Does anyone has an idea, what is going wrong?
You’re trying to log in. Ghost wants to send you a verification code, but it can’t, because you don’t have email configured.
If you can’t configure email, you can disable the verification codes by adding this to your config file:
"security": {
"staffDeviceVerification": false
}
Additional configuration options are here: Configuration - Adapt your publication to suit your needs
1 Like
Wow, it’s working with this setting :-) .
Thanks a lot.
I will check later the correct mail-setting according to your link.
is there a way to do this in the docker compose file?
Yes, see: Configuration - Adapt your publication to suit your needs
This would become:
security__staffDeviceVerification=false
You can set this in the environment
property of your Docker Compose:
that works! thank you SO much for your quick reply!
1 Like