2022-05-14 - enforce https for post body contents in ghost running in bitnami stack

issue

letsencrypt running fine, featured image in posts are showing, but all images are broken, because they are all having a http link.

solution

( by the OP kevc1973, based on the post in : https://bit.ly/3Pmg2SE )

  1. stop the service
sudo /opt/bitnami/ctlscript.sh stop
  1. backup the config file
/bitnami/ghost/config.production.json
  1. edit value of url the config file, replace http with https ;
    ( tried this before but resulted in some sort of localhost redirection, since i missed the followings );

  2. enable protocol proxy pass in apache
    config file :

/opt/bitnami/apps/letsencrypt/conf/httpd-app.conf

insert this line at the top of the config file :

RequestHeader set X-Forwarded-Proto "https"
  1. start the service
sudo /opt/bitnami/ctlscript.sh start

done ~