mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 04:57:04 +03:00
Added WAL mode checkpoint number
This commit is contained in:
5
index.js
5
index.js
@@ -39,6 +39,11 @@ var adminUserID = config.adminUserID;
|
|||||||
//if so, it will use the x-forwarded header instead of the ip address of the connection
|
//if so, it will use the x-forwarded header instead of the ip address of the connection
|
||||||
var behindProxy = config.behindProxy;
|
var behindProxy = config.behindProxy;
|
||||||
|
|
||||||
|
// Enable WAL mode checkpoint number
|
||||||
|
if (!config.readOnly) {
|
||||||
|
db.get("PRAGMA wal_autocheckpoint=1");
|
||||||
|
}
|
||||||
|
|
||||||
//setup CORS correctly
|
//setup CORS correctly
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
res.header("Access-Control-Allow-Origin", "*");
|
res.header("Access-Control-Allow-Origin", "*");
|
||||||
|
|||||||
Reference in New Issue
Block a user