Fixing mixed content warnings
This commit is contained in:
parent
d8b27fd761
commit
0545ecbd51
|
@ -1185,12 +1185,17 @@ function install_pleroma {
|
|||
echo 'WantedBy=multi-user.target';
|
||||
echo 'Alias=pleroma.service'; } > /etc/systemd/system/pleroma.service
|
||||
|
||||
|
||||
# avoid mixed content warnings
|
||||
sed -i '/config :pleroma, :media_proxy/!b;n;c####enabled: true,' $PLEROMA_DIR/config/config.exs
|
||||
sed -i 's|####enabled| enabled|g' $PLEROMA_DIR/config/config.exs
|
||||
|
||||
# set registrations open initially
|
||||
sed -i 's|registrations_open:.*|registrations_open: true,|g' $PLEROMA_DIR/config/config.exs
|
||||
sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json
|
||||
|
||||
if ! grep -q "media_proxy" $PLEROMA_DIR/priv/static/static/config.json; then
|
||||
sed -i '/"name":/a "media_proxy": false,' $PLEROMA_DIR/priv/static/static/config.json
|
||||
sed -i '/"name":/a "media_proxy": true,' $PLEROMA_DIR/priv/static/static/config.json
|
||||
sed -i 's|"media_proxy"| "media_proxy"|g' $PLEROMA_DIR/priv/static/static/config.json
|
||||
else
|
||||
sed -i 's|"media_proxy".*|"media_proxy": false,|g' $PLEROMA_DIR/priv/static/static/config.json
|
||||
|
|
Loading…
Reference in New Issue