mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
ghost: force https in urls
This commit is contained in:
parent
c5b46b99a5
commit
461214117d
@ -2,7 +2,7 @@
|
|||||||
cd /ghost/content
|
cd /ghost/content
|
||||||
mkdir apps data images themes
|
mkdir apps data images themes
|
||||||
|
|
||||||
sed -i "s|my-ghost-blog.com|$DOMAIN|g" /ghost/config.js
|
sed -i "s|http://my-ghost-blog.com|https://$DOMAIN|g" /ghost/config.js
|
||||||
|
|
||||||
if [ "$SSL" == "True" ] && ! grep -q 'urlSSL' /ghost/config.js; then
|
if [ "$SSL" == "True" ] && ! grep -q 'urlSSL' /ghost/config.js; then
|
||||||
sed -i "/url/a \ \ \ \ \ \ \ \ urlSSL: 'https://$DOMAIN'," /ghost/config.js
|
sed -i "/url/a \ \ \ \ \ \ \ \ urlSSL: 'https://$DOMAIN'," /ghost/config.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user