Commit Graph

289 Commits (8abdefd403b49cce550163871fa3b4d102f0560f)

Author SHA1 Message Date
Florian Brede 6ebe94e8a5 FIX: removed discarded sendmail import 2021-05-23 03:11:27 +02:00
Florian Brede 7dffbaf270 FIX: missing import for execSync 2021-05-23 03:08:16 +02:00
Florian Brede a933eadb6e
Update README.md 2021-05-23 02:34:33 +02:00
Florian Brede d0c65b1259 TODO: directly bundled a compiled & fixed version of cabana in .../cabana/ 2021-05-23 02:28:33 +02:00
Florian Brede a5871a9783 TODO: replaced sendmail by nodemailer to allow using a proper & authenticated smtp endpoint. 2021-05-23 02:18:11 +02:00
Florian Brede b9cf8e26d9
Merge pull request #3 from AdamSBlack/main
Continuation, routes now in /routes and /controllers more fleshed out + tests
2021-05-23 01:21:24 +02:00
Adam Black 7cc8eca375 Merge branch 'florianbrede-ayet:main' into main 2021-05-22 22:24:37 +01:00
Adam Black 44905c2c2c cleaned up server.js requires, renabled console logs 2021-05-22 20:45:32 +01:00
Adam Black 24ffb60fe7 Update test name 2021-05-22 20:42:56 +01:00
Adam Black d6cfb43532 clear down console logging, new test, silence sendmail 2021-05-22 20:36:44 +01:00
Adam Black 0d49d5ce6c Added tests 2021-05-22 17:33:28 +01:00
Florian Brede dbe5ac7cde
Update README.md 2021-05-22 04:22:33 +02:00
Florian Brede 1edbaf6395 FIX: the worker was regularly hanging because the "wasm-bz2" library comma uses does not correctly handle corrupt files (the stream stalls despite not having all bytes read). we now use the native bunzip2 which both gives better performance and reliable error handling 2021-05-22 03:44:03 +02:00
Adam Black 2f3c094ca3 __dirname > __basedir 2021-05-21 23:29:36 +01:00
Adam Black 68ed642fcc removed import from worker.js, will switch everything over to import in future commit 2021-05-21 23:21:06 +01:00
Adam Black 47784d1d34 split api & useradmin into their own routes 2021-05-21 23:17:11 +01:00
Adam Black 64d942ddbb Readded userping 2021-05-21 22:40:00 +01:00
Adam Black ca745ca470 Removed functions from server.js and put them in their own controllers. Updated .gitignore to ignore dbs/configs/.idea files 2021-05-21 22:32:55 +01:00
Florian Brede a5fbb94162 FIX: typo in jwt token validation 2021-05-21 17:41:38 +02:00
Florian Brede 972e6719e9 FIX: JWT validation can return null as well 2021-05-21 02:58:06 +02:00
Florian Brede c507c6166a
Merge pull request #2 from AdamSBlack/main
Foundations to split DB bits into models, linted and cleaned up a few bits
2021-05-21 01:43:30 +02:00
AdamSBlack a25992c8f0 fix for JWT not being added to auth controller 2021-05-20 22:07:07 +01:00
AdamSBlack 315fd70098 fixed drives model to return db query
minor updates to /upload_url
2021-05-20 21:56:43 +01:00
Florian Brede 43b419b897 FIX: quirky gps handling & incorrect timespan calculations 2021-05-20 03:50:53 +02:00
AdamSBlack a63d1914c8 DB connection is now established in /models/index and is passed back to server.js until all db calls are moved into their own model.
> passing db connection to models/drives.js
2021-05-19 23:20:00 +01:00
AdamSBlack 0e533fb494 DB connection is now established in /models/index and is passed back to server.js until all db calls are moved into their own model. 2021-05-19 23:17:49 +01:00
AdamSBlack 436aa3fda5 Partial refactoring of v1.3/:dongleId/upload_url/, less code, started putting things into their own models.
Won't work until I finish
2021-05-19 22:55:19 +01:00
Florian Brede 446ab43887 FIX: support grey and black panda gps distance calculation, increase lock stale time, skip ongoing uploads with missing directories 2021-05-19 18:28:39 +02:00
Florian Brede 8d3151eb0d FIX: es6 requirement 2021-05-19 07:10:17 +02:00
Florian Brede f2691b7cdb TODO: added .well-known static serving for letsencrypt, fixed some bugs from testing 2021-05-19 06:13:26 +02:00
Florian Brede 4d3c6605ad FIX: config.sample.js database.sqlite 2021-05-18 05:35:22 +02:00
Florian Brede 654daf3ebe
Update README.md 2021-05-18 05:34:28 +02:00
Florian Brede ef0e0a683f TODO: replaced lowdb with sqlite, fixed some bugs and implemented some performance improvements. requires node 10 and ESM (node -r esm xxx.js) now. 2021-05-18 05:31:02 +02:00
Florian Brede e000d7a7a6 TODO: updated all quota / expire / delete drive functionality including recalculating device used storage in worker.js
also fixed some bugs, some performance improvements, removed drive count limit and added a "MOTD" field rendered on the login page.
2021-05-17 03:53:25 +02:00
Florian Brede a2f7c65cea FIX: removed imei2 parameter as it's not available on all devices and not technically required 2021-05-16 23:14:23 +02:00
Florian Brede f6576e10a0
Update README.md 2021-05-16 06:03:50 +02:00
Florian Brede 553307b505 FIX: pass retropilot-server base url to cabana to fetch drives configuration independent 2021-05-16 04:56:30 +02:00
Florian Brede ec2d421d3d TODO: initial retropilot-server commit 2021-05-16 04:35:18 +02:00
Florian Brede b26a3a6bdd
Initial commit 2021-05-16 04:24:48 +02:00