Set encryption rounds low for use on low power devices

This commit is contained in:
Bob Mottram 2017-11-07 22:22:37 +00:00
parent 14f3964eae
commit 537248dbd7
1 changed files with 5 additions and 0 deletions

View File

@ -234,6 +234,11 @@ function pleroma_create_database {
sed -i 's|watchers: []|watchers: [],|g' $pleroma_secret
sed -i "/watchers: []/a url: [host: \"$PLEROMA_DOMAIN_NAME\", scheme: \"https\", port: 443]" $pleroma_secret
sed -i 's|url: | url: |g' $pleroma_secret
if ! grep -q "pbkdf2_rounds" $pleroma_secret; then
sed -i '/config :logger/a config :comeonin, :pbkdf2_rounds, 1' $pleroma_secret
else
sed -i 's|pbkdf2_rounds.*|pbkdf2_rounds, 1|g' $pleroma_secret
fi
cd $PLEROMA_DIR
chown -R pleroma:pleroma *