Add timeout command for not very powerful SBCs

This commit is contained in:
Bob Mottram 2017-11-07 19:48:19 +00:00
parent 219ad6ac45
commit 3708790d82
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ function pleroma_create_database {
run_system_query_postgresql "GRANT ALL ON ALL tables IN SCHEMA public TO pleroma;"
run_system_query_postgresql "GRANT ALL ON ALL sequences IN SCHEMA public TO pleroma;"
run_system_query_postgresql "CREATE EXTENSION citext;"
run_system_query_postgresql "set statement_timeout to 20000;"
read_config_param "PLEROMA_SECRET_KEY"
if [ ${#PLEROMA_SECRET_KEY} -lt 50 ]; then