Commit Graph

1212 Commits

Author SHA1 Message Date
68db63b629 Merge branch 'staging' into whitelist-hosts 2025-03-01 19:44:49 +02:00
743f07167c Update third-party dependencies 2025-03-01 19:38:21 +02:00
b95dd04fbe Merge pull request #3585 from SillyTavern/chalk-lib
Use chalk lib for console colorization
2025-03-01 19:04:31 +02:00
661b84033f Don't use String constructor in calculateDataSize 2025-03-01 14:30:48 +02:00
868e97804a Use chalk lib for console colorization 2025-03-01 00:56:50 +02:00
7e8471f28f Enhance logging for resolved whitelist hostnames with color formatting 2025-03-01 00:30:00 +02:00
60e8ffbf90 Improve logging in resolveHostnames function to provide clearer output for resolved IP addresses 2025-02-28 00:39:32 +02:00
50ad31f8e8 Update the resolveHostnames function to clarify its behavior and improve documentation 2025-02-28 00:36:27 +02:00
978b2cdb21 Refactor whitelist middleware to return a promise and update server.js to handle async initialization 2025-02-28 00:25:59 +02:00
d286fff42c Merge branch 'staging' into whitelist-hosts 2025-02-28 00:17:31 +02:00
0bc4396427 Resolve hostnames from whitelist 2025-02-27 23:14:57 +02:00
ea643cce6e Add gpt-4.5-preview 2025-02-27 22:08:29 +01:00
60448f4ce8 Move security checks to users.js 2025-02-27 21:27:39 +02:00
d5056a5563 Merge branch 'staging' into cli-args-refactor 2025-02-27 20:48:34 +02:00
c60af6659c Change extensions list to debug level 2025-02-26 20:54:25 +02:00
02ab882e63 Fix deno startup 2025-02-26 20:53:17 +02:00
02cdec5a10 Validate SSL config for sanity before startup 2025-02-26 20:32:26 +02:00
813ec537cd Fix default values for SSL command line 2025-02-26 20:24:22 +02:00
1ef04ffc4d Rewrite comments 2025-02-26 16:22:56 +00:00
68eecc77bb Refactor IP interface query 2025-02-26 15:44:39 +00:00
b64273ab94 Fix comments, update function interfaces 2025-02-26 15:36:01 +00:00
e7fcd0072b Refactor server startup 2025-02-26 14:46:54 +00:00
6947ca7433 Show forwarded IP in whitelist denied message 2025-02-25 23:58:12 +00:00
acd8b817f4 Improve number type conversion in getConfigValue to handle NaN cases 2025-02-26 00:08:04 +02:00
0776f65193 Allow JSON array and objects in env.var configs 2025-02-25 22:20:17 +02:00
4edb069bd8 Split avatar dimensions config read by types 2025-02-25 22:19:09 +02:00
861c502e44 Return type casts where they were 2025-02-25 22:12:22 +02:00
11d56a407d Merge branch 'staging' into immutable-config 2025-02-25 22:08:35 +02:00
b8ebed0f4c Claude 3.7 think mode 2025-02-24 23:43:13 +02:00
82b74628c6 Sonnet 3.7 2025-02-24 21:06:12 +02:00
ae666c9012 OpenRouter (CC): explicit opt-out for reasoning 2025-02-23 22:13:11 +02:00
252ae9f534 Update access log configuration to enforce boolean type 2025-02-22 20:20:23 +02:00
a73dfa7586 Merge branch 'staging' into immutable-config 2025-02-22 20:15:13 +02:00
fb06e7afa1 Merge pull request #3403 from SillyTavern/support-multiple-expressions
Support multiple expressions
2025-02-22 20:13:43 +02:00
3e26b93971 Do not register whitelist middleware if whitelist disabled 2025-02-22 14:14:40 +02:00
a2ecb81378 Move minLogLevel to logging section 2025-02-22 13:58:08 +02:00
42f850239f fix(middleware): skip logging for blocked connections to specific paths 2025-02-22 19:42:38 +08:00
1adde74f38 Merge branch 'staging' into support-multiple-expressions 2025-02-21 21:06:20 +02:00
f755c3d4cb refactor(middleware): rename accessLogger to accessLogWriter 2025-02-21 23:56:31 +08:00
9c3e8c935b refactor(Middleware): only mount accessLogger when listen is enabled 2025-02-21 23:49:15 +08:00
bfc609c2a8 fix(middleware): skip New connection message and access.log writes for localhost 2025-02-21 22:17:12 +08:00
db500188d8 feat(middleware): add separate access log middleware with config option 2025-02-21 20:32:23 +08:00
ab4d296b22 fix: return empty strings for branch name and commit hash in error response 2025-02-20 23:18:03 +02:00
8ad7b5dcc5 Check if git repo root in plugin update 2025-02-20 23:13:23 +02:00
00bb36f764 Fix setting basic auth creds with env 2025-02-20 22:38:47 +02:00
73784642d2 Save setConfigValue export 2025-02-20 22:31:23 +02:00
2b28065c9f Fix setting protocols with env 2025-02-20 22:28:30 +02:00
eb31d7baa2 Merge branch 'staging' into immutable-config 2025-02-20 21:54:41 +02:00
3f03936125 Add config value type converters for numbers and booleans 2025-02-20 21:53:48 +02:00
3f5b63bba0 Feature: Add configurable X-Real-IP header support for rate limiting (#3504)
* fix: correct client IP detection behind reverse proxy

* Revert "fix: correct client IP detection behind reverse proxy"

This reverts commit 7207506240.

* feat: support X-Real-IP header for reverse proxy setups

* feat: add option to use x-real-ip for rate limiting behind reverse proxy

* docs: update rate limiting configuration comments for X-Real-IP usage

* refactor: extract getIpAddress function to reduce code duplication

* revert(whitelist): rate limit settings shouldn't affect whitelist
2025-02-20 21:11:44 +02:00