瀏覽代碼

Add timeout command for not very powerful SBCs

Bob Mottram 7 年之前
父節點
當前提交
3708790d82
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/freedombone-app-pleroma

+ 1
- 0
src/freedombone-app-pleroma 查看文件

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