Commit Graph

80 Commits

Author SHA1 Message Date
Cohee
e7fcd0072b Refactor server startup 2025-02-26 14:46:54 +00:00
Cohee
acd8b817f4 Improve number type conversion in getConfigValue to handle NaN cases 2025-02-26 00:08:04 +02:00
Cohee
0776f65193 Allow JSON array and objects in env.var configs 2025-02-25 22:20:17 +02:00
Cohee
a73dfa7586 Merge branch 'staging' into immutable-config 2025-02-22 20:15:13 +02:00
Cohee
a2ecb81378 Move minLogLevel to logging section 2025-02-22 13:58:08 +02:00
Cohee
73784642d2 Save setConfigValue export 2025-02-20 22:31:23 +02:00
Cohee
2b28065c9f Fix setting protocols with env 2025-02-20 22:28:30 +02:00
Cohee
3f03936125 Add config value type converters for numbers and booleans 2025-02-20 21:53:48 +02:00
Cohee
f6fe5fea77 Allow overriding config.yaml values with env vars
Closes #3520
2025-02-20 20:29:42 +02:00
Cohee
7ea2c5f8cf Move cookie secret to data root. Make config.yaml immutable 2025-02-20 20:16:44 +02:00
Cohee
363d8a4121 Merge branch 'staging' into ipv6_auto 2025-02-04 22:45:46 +02:00
Cohee
0c8a11e28b Further loglevel updates
1. Fix missed endpoints
2. Exclude console.log from loglevel
2025-02-02 15:40:37 +02:00
Eradev
055a6527fc PR fixes 2025-02-02 03:10:32 -05:00
Eradev
552a418bae Merge branch 'staging' into staging-3071-v2 2025-01-28 10:49:53 -05:00
Spappz
6099ffece1 No exceptions on missing error webpages
- Create a `safeReadFileSync()` function in `src/utils.js` to wrap around `fs.readFileSync()`
- Migrate error-webpage loads to use `safeReadFileSync()`, with default values of an empty string
- Move the 404 error middleware to explicitly only be called *after* extensions are registered
2025-01-25 20:29:31 +00:00
Eradev
1f9fa74786 Rewritten minLogLevel feature 2025-01-15 10:02:32 -05:00
BPplays
f372e1a69d more jsdoc stuff 2025-01-09 19:09:55 -08:00
BPplays
b43ac187ec formatting changes 2025-01-09 18:27:21 -08:00
BPplays
adc5940d15 formatting changes 2025-01-09 18:17:02 -08:00
Cohee
9db9c5c9ca Reorganize backup configs 2025-01-05 16:03:52 +02:00
Cohee
0e3ff1699a Merge pull request #3226 from BPplays/ipv6_auto
Automatically detect what IP versions are available and use them
2025-01-04 16:22:53 +02:00
Cohee
97f6dcace0 Fix types for extractFileFromZipBuffer 2025-01-03 00:16:14 +02:00
BPplays
f27b3361e5 lint 2024-12-30 03:01:04 -08:00
BPplays
f67abf9e03 improved urlHostnameToIPv6 2024-12-30 02:59:41 -08:00
BPplays
7744be3319 commited util 2024-12-29 04:20:59 -08:00
BPplays
07cff878e5 commited util 2024-12-29 04:20:39 -08:00
Cohee
5c82ccf435 Refactor endpoints/chats.js
1. Move formatBytes utility to util.js
2. Fix type error related to dates sorting
3. Add type to backupFunctions map
2024-12-12 14:07:37 +02:00
Cohee
3849908fe1 Add maxTotalChatBackups config.yaml value 2024-12-07 15:37:57 +02:00
Cohee
373a0ad321 Add config.yaml value for cards cache capacity. 2024-12-05 12:59:03 +00:00
Cohee
095d19cda7 Rename LimitedMap => MemoryLimitedMap 2024-11-29 12:33:48 +00:00
Cohee
c873362d01 Safer estimation of possibly undefined values 2024-11-29 01:28:10 +02:00
Cohee
52606616c4 Add 100MB limit to parsed characters cache 2024-11-29 01:06:10 +02:00
Cohee
a32dd436d7 Node: Replace global with globalThis 2024-10-18 09:13:25 +00:00
Cohee
4fcad0752f [chore] Fix type errors 2024-10-11 21:33:36 +03:00
Cohee
a0889a15fd Explicitly import node process 2024-10-11 10:43:29 +03:00
Cohee
a0e6030836 Simplify node imports 2024-10-11 00:28:17 +03:00
Cohee
1616e7e067 Explicitly import Buffer. Specify jsdoc local extensions 2024-10-10 23:36:22 +03:00
Cohee
d52b4fbbde Node: Migrate to ES Modules 2024-10-10 22:37:22 +03:00
Cohee
81251b073a Implement downloadable tokenizers
Closes #2574, #2754
2024-09-06 16:28:34 +00:00
Cohee
3806dcf9fb Fix uuidv4 on Node 18
Closes #2718
2024-08-27 09:35:00 +00:00
Cohee
ff834efde3 Exit server process on config.yaml read errors 2024-08-26 11:06:30 +03:00
Cohee
cb7185fa12 [chore] Fix grammar, add JSDocs 2024-08-15 20:29:17 +03:00
Cohee
a08b3ec7fc Sort gallery images by date 2024-08-15 00:40:08 +03:00
Cohee
ce18b33e73 Set the maximum number of backups via config 2024-07-01 01:17:56 +03:00
Cohee
d1ed983106 Use crypto UUID if available 2024-06-10 14:18:38 +03:00
Cohee
60b7164c28 Import character icon from CHARX 2024-06-08 22:37:17 +03:00
Cohee
20d12dc98e (WIP) Import JSON from .charx 2024-06-02 00:28:41 +03:00
Cohee
e66b270811 Change backups to be user data scoped 2024-05-28 17:49:34 +03:00
Cohee
cbedfa4664 Use atomic write 2024-04-27 22:02:04 +03:00
Cohee
01ccc32274 Cache config.yaml reads 2024-04-27 21:59:57 +03:00