wrvsrx
bf97686dfc
Allow read-only installation
...
Fix #3453 .
Thanks to #3499 , #3500 and #3521 , most of the obstacles to read-only installation have been resolved. This PR addresses the final piece, ensuring that SillyTavern no longer changes directories to `serverDirectory` and outputs files there. Instead, it outputs or copies necessary files to the directory where it is being run. Now, `serverDirectory` is read-only for SillyTavern (i.e., SillyTavern will not attempt to modify `serverDirectory`). Additionally, this PR sets the permissions for copied `default-user` files to be writable, so even if SillyTavern is installed as read-only, the copied `default-user` folder can still be modified.
2025-04-16 09:52:08 +08:00
Cohee
62342b35e2
Reasoning template
2025-03-16 15:01:31 +02:00
Cohee
4c242fefe8
More concise startup logs
2025-03-01 21:07:12 +02:00
Cohee
60448f4ce8
Move security checks to users.js
2025-02-27 21:27:39 +02:00
Cohee
e7fcd0072b
Refactor server startup
2025-02-26 14:46:54 +00:00
Cohee
3f03936125
Add config value type converters for numbers and booleans
2025-02-20 21:53:48 +02:00
Cohee
7571552fef
STORAGE_KEYS.cookieSecret deprecated
2025-02-20 20:45:20 +02:00
Cohee
7ea2c5f8cf
Move cookie secret to data root. Make config.yaml immutable
2025-02-20 20:16:44 +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
Cohee
a42337ad0a
Use 'localhost' as a fallback for hostname
2025-01-26 16:50:59 +02:00
Cohee
abe51682c8
[wip] Add global extensions
2024-12-07 17:10:26 +02:00
Cohee
a32dd436d7
Node: Replace global with globalThis
2024-10-18 09:13:25 +00: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
QuantumEntangledAndy
ad316c6d78
[chore] Use same basic code logic in user as in basicAuth
2024-10-09 15:09:10 +07:00
QuantumEntangledAndy
06a7bdd3ce
Only allow login via basic per-user if user password is set
2024-10-09 15:04:28 +07:00
Cohee
15436d0f2a
[chore] Strict equality check
2024-10-09 02:13:23 +03:00
Cohee
fe8ffe5be8
[bug] Fix basic auto-logins to disabled users
2024-10-09 02:12:20 +03:00
Cohee
a1352d817a
[bug] Don't try per user auto-login if basic auth disabled
2024-10-09 02:04:47 +03:00
Cohee
0ada5407ee
[bug] Fix login attempts to disabled users
2024-10-09 01:54:56 +03:00
Cohee
07d6808e4e
[chore] Rename local variable, use strict comparison.
2024-10-09 01:46:07 +03:00
Cohee
3e9d0cc1ad
[chore] Remove debug console log
2024-10-09 01:42:51 +03:00
Cohee
3422303882
[chore] Rename local variable
2024-10-09 01:40:49 +03:00
Cohee
b9375ed7ea
Rename PERUSER => PER_USER
2024-10-09 01:37:34 +03:00
QuantumEntangledAndy
1cda7003d1
Add a noauto query param to login
2024-10-07 09:17:43 +07:00
QuantumEntangledAndy
329469021e
Address comments
2024-10-06 18:20:30 +07:00
QuantumEntangledAndy
71236e5e8c
eslint
2024-10-06 15:06:05 +07:00
QuantumEntangledAndy
69a604044d
Add additional login methods
2024-10-06 14:35:03 +07:00
Cohee
6cab3c7d20
Don't silence migration errors + add backups
...
Closes #2900
2024-09-25 13:09:13 +00:00
Cohee
c340766bb6
Use prefix in the migrated sysprompts
2024-09-22 21:06:03 +03:00
Cohee
4b235f0b31
Migrate only unique and non-default instruct prompts
2024-09-20 01:02:13 +03:00
Cohee
0f2daede51
Merge branch 'staging' into sysprompt-divorce
2024-09-18 23:40:46 +03:00
Cohee
2f7d694f54
Migrate sysprompts from instruct
2024-09-17 11:33:24 +00:00
Cohee
73ee869749
Load sysprompts from content manager
2024-09-17 10:38:14 +00:00
Cohee
8ec509c777
Unify default user avatars
...
Closes #2862
2024-09-16 22:08:40 +03:00
Cohee
c2057da348
Move transformers.js model cache under the data root
2024-08-16 11:59:41 +00:00
steve green
46c91bec67
Update server.js to trust UserAccounts securely ( #2447 )
...
* Update server.js to trust UserAccounts securely
* Update zh-cn.json btw
* Clarify security logic
* update logic
* Fix filtering of enabled users.
* Fix account name logging
* More friendly log
* Even friendlier message
* Revert deleted keys
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2024-07-03 21:24:03 +03:00
Cohee
e66b270811
Change backups to be user data scoped
2024-05-28 17:49:34 +03:00
Cohee
3b153a6c9b
Check that path exists before serving
2024-04-27 21:54:28 +03:00
Cohee
4c9d52422b
[chore] ESLint and JSDoc
2024-04-26 22:46:13 +03:00
Cohee
1b60e4a013
Init user storage module before server listening
2024-04-26 14:09:40 +03:00
Cohee
71f41d5233
Fix server crash in auto login
2024-04-23 21:11:47 +03:00
Isaac McFadyen
15a8adb0b9
Changed fs.cpSync to use recursive copying
2024-04-18 16:04:04 -04:00
Isaac McFadyen
3822ae9356
Switched fs.renameSync to fs.copyFileSync
2024-04-18 15:50:27 -04:00
Cohee
3dcea41c4e
Preserve a query string when redirecting to and from login
2024-04-16 18:44:11 +03:00
Cohee
f947c1304a
Disable TTL on user accounts.
...
The biggest skill issue so far.
2024-04-16 02:49:30 +03:00
Cohee
b340863d52
Auto-extend session if loading the home page
2024-04-13 19:12:50 +03:00
Cohee
1a372abaff
Customizable avatars for users
2024-04-13 17:52:37 +03:00