merge upstream

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2023-03-18 11:37:05 +01:00
parent 1d9c7b0570
commit 256a068791
24 changed files with 34 additions and 136 deletions

View File

@@ -6,7 +6,7 @@
},
"servers": [
{
"url": "http://127.0.0.1:81/api"
"url": "https://127.0.0.1:81/api"
}
],
"paths": {

0
backend/index.js Normal file → Executable file
View File

View File

@@ -16,8 +16,8 @@
"express-fileupload": "1.4.0",
"gravatar": "1.8.2",
"jsonwebtoken": "9.0.0",
"knex": "10.6.1",
"liquidjs": "9.43.0",
"knex": "2.4.2",
"liquidjs": "10.7.0",
"lodash": "4.17.21",
"moment": "2.29.4",
"mysql": "2.18.1",

2
backend/password-reset.js Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
// based on: https://github.com/jlesage/docker-nginx-proxy-manager/blob/796734a3f9a87e0b1561b47fd418f82216359634/rootfs/opt/nginx-proxy-manager/bin/reset-password

5
backend/sqlite-vaccum.js Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/node
#!/usr/bin/env node
const fs = require('fs');
const sqlite3 = require('sqlite3');
@@ -7,7 +8,7 @@ if (fs.existsSync(process.env.DB_SQLITE_FILE)) {
if (err) {
console.error(err.message);
} else {
db.run('VACUUM;', [], (err) => {
db.run('VACUUM; PRAGMA auto_vacuum = 1;', [], (err) => {
if (err) {
console.error(err.message);
}