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 )
- stop the service
sudo /opt/bitnami/ctlscript.sh stop
- backup the config file
/bitnami/ghost/config.production.json
-
edit value of
url
the config file, replacehttp
withhttps
;
( tried this before but resulted in some sort of localhost redirection, since i missed the followings ); -
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"
- start the service
sudo /opt/bitnami/ctlscript.sh start
done ~