summaryrefslogtreecommitdiff
path: root/connect-better-sqlite3.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-02 20:08:41 +0000
committerTor Andersson <tor@ccxvii.net>2021-11-06 13:25:27 +0100
commitdf3b42121f297c326fa8b481215252603c8937c4 (patch)
tree9d8f213c17ae14dbeb9f6e37aad4a8df419e8cab /connect-better-sqlite3.js
parent35c3df0bf9209e79fb93875b1fc3e5afee032028 (diff)
downloadserver-df3b42121f297c326fa8b481215252603c8937c4.tar.gz
Tweak HTTPS setup stuff.
Serve both HTTP and HTTPS without redirection.
Diffstat (limited to 'connect-better-sqlite3.js')
-rw-r--r--connect-better-sqlite3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/connect-better-sqlite3.js b/connect-better-sqlite3.js
index de858ed..008114b 100644
--- a/connect-better-sqlite3.js
+++ b/connect-better-sqlite3.js
@@ -30,7 +30,7 @@ module.exports = function (session) {
let db = new SQLite(db_path, options.mode);
db.pragma("journal_mode = WAL");
- db.pragma("synchronous = NORMAL");
+ db.pragma("synchronous = OFF");
db.exec("CREATE TABLE IF NOT EXISTS "+table+" (sid PRIMARY KEY, expires INTEGER, sess TEXT)");
db.exec("DELETE FROM "+table+" WHERE "+now()+" > expires");
db.exec("VACUUM");