Skip to content

Commit

Permalink
Overwrite some values that allowed uploading large changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Apr 12, 2024
1 parent 3361d3c commit 0374c8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/web/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ chmod 400 /var/www/private.pem
export DOORKEEPER_SIGNING_KEY=$(cat /var/www/private.pem | sed -e '1d;$d' | tr -d '\n')
sed -i "s#PRIVATE_KEY#${DOORKEEPER_SIGNING_KEY}#" $workdir/config/settings.yml

# Overwrite some values that allowed uploading large changes at the start.
sed -i 's/min_changes_per_hour int4 := 100;/min_changes_per_hour int4 := 10000000;/' db/structure.sql
sed -i 's/initial_changes_per_hour int4 := 1000;/initial_changes_per_hour int4 := 100000000;/' db/structure.sql

#### CHECK IF DB IS ALREADY UP AND START THE APP
flag=true
site_loading=true
Expand Down

0 comments on commit 0374c8f

Please sign in to comment.