I need help. How to set canonical ghost to use https

If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.

If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.

  • What’s your URL? This is the easiest way for others to help you.
    answer : https://suksesbersamakerabat.com

  • What version of Ghost are you using? If it’s not the latest, please update Ghost first before opening your topic.
    answer : image ghost last version

And

  • How was Ghost installed and configured?
    answer : via docker aapanel

  • What Node version, database, OS & browser are you using?
    answer : node v.20, mysql v.8.0, ubuntu 22.04LTS with aaPanel.

  • What errors or information do you see in the console?
    answer : I have changed the canonical in the config.production.json file to canonical https www but it still displays http www on my ghost.

  • What steps could someone else take to reproduce the issue you’re having?
    answer : I have tried to reinstall my ghost and set the url directly https www on the ghost template in docker, but it doesn’t work.

then I reinstalled it again with the url http no problem and after the reinstallation process was complete I tried to change the config.production.json file to https but the canonical that appears is still http.

because I need the canonical https www to make my SEO run easier.

is there a solution to solve the problem I’m facing?

Because my client’s website already uses aaPanel as its base and I want them to try using ghost to make their company’s SEO easier.

and I use the reverse proxy method on the domain to localhost port 8080 where my ghost is installed via docker.

Thank you.

image

image

How about docker-compose.yml file, do you set site domain in the file?
You can check Ghost docker image for more details.


and this is what happens if I change the http url to https in docker-compose.yml

Switching from http to https in ‘docker-compose.yml’ would not cause this, there must be other configuration errors.

Check other configs, like port, Ghost’s default port is 2368.