536 Commits

Author SHA1 Message Date
BPplays
dd6dcf1c5b changed to check 127.0.0.1 because that's what it binds to 2024-12-28 17:27:49 -08:00
BPplays
0382afc488 changed foramtting 2024-12-28 17:15:44 -08:00
BPplays
19eae8cb49 fixed broken ipv6 on linux, and weird implementation in general 2024-12-28 17:14:30 -08:00
BPplays
1a1ab1d18a check for localhost ip and ignore link-local v6, i think you need to specify an interface 2024-12-28 13:31:50 -08:00
BPplays
ae79616c73 changed color of ip warning 2024-12-26 11:44:30 -08:00
BPplays
9c0993908a moved stringtobool 2024-12-26 11:42:32 -08:00
BPplays
647b89f8ad changed settings value error to just set to auto 2024-12-26 11:40:22 -08:00
BPplays
591a61a61c misc formatting 2024-12-26 10:51:45 -08:00
BPplays
4a8b47a6ff fixed cli args and logic bug 2024-12-26 10:44:48 -08:00
BPplays
1689baa2a4 changed back const 2024-12-26 10:30:51 -08:00
BPplays
ca283c0da6 fixed backward compat, and check if auto before getting addrs 2024-12-26 10:29:04 -08:00
BPplays
9e049f44e2 fixed logic bug 2024-12-25 17:28:44 -08:00
BPplays
0bc0569932 changed to always report supported ip ver even when disabled, green means it's enabled 2024-12-25 17:25:02 -08:00
BPplays
e861b18992 added better error reporting 2024-12-25 17:22:18 -08:00
BPplays
26c0b620f8 added better error reporting 2024-12-25 17:16:40 -08:00
BPplays
324eb695f5 added better error reporting 2024-12-25 17:16:12 -08:00
BPplays
b5139e3ff9 fixed linting issues 2024-12-25 17:06:05 -08:00
BPplays
38b1c26396 made loop better 2024-12-25 17:01:12 -08:00
BPplays
418a2564b2 added better error handling 2024-12-25 16:59:47 -08:00
BPplays
8d0261bab3 fixed dumb mistake 2024-12-25 16:52:13 -08:00
BPplays
b0cb982978 added automatic ipv6 ipv4 detection 2024-12-25 16:46:16 -08:00
Cohee
afccb8517a Ditch webpack-dev-middleware 2024-11-29 00:13:43 +02:00
Cohee
e919034132 webpack: Wait for bundle before serving 2024-10-17 11:04:34 +00:00
Cohee
4725b869eb Add webpack for external frontend libraries. 2024-10-16 22:00:14 +03:00
Cohee
ab2427142c [chore] Fix type errors in server.js 2024-10-11 20:34:13 +03:00
Cohee
a0889a15fd Explicitly import node process 2024-10-11 10:43:29 +03:00
Cohee
0c8ccf1765 Update module imports 2024-10-11 00:41:08 +03:00
Cohee
a0e6030836 Simplify node imports 2024-10-11 00:28:17 +03:00
Cohee
c67c0cbf7e Fix dirname for Node 18 2024-10-11 00:06:02 +03:00
Cohee
478976f647 Fix open autorun import 2024-10-10 23:50:51 +03:00
Cohee
d52b4fbbde Node: Migrate to ES Modules 2024-10-10 22:37:22 +03:00
Cohee
fe1f9fafbd [bug] Don't allow per user auth with accounts disabled 2024-10-09 10:43:52 +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
b9375ed7ea Rename PERUSER => PER_USER 2024-10-09 01:37:34 +03:00
QuantumEntangledAndy
69a604044d
Add additional login methods 2024-10-06 14:35:03 +07:00
Cohee
2f7d694f54 Migrate sysprompts from instruct 2024-09-17 11:33:24 +00:00
Cohee
6393eda81e Auto-add OpenRouter captioning models 2024-09-15 18:38:44 +03:00
Cohee
2efb637863 Better option description 2024-09-12 20:30:52 +03:00
Cohee
edd6dfa819 Fix typo 2024-09-12 20:29:46 +03:00
Cohee
b9d5c61b2e Add CLI for request proxy
Closes #364, #377, #1756
2024-09-12 20:25:58 +03:00
Cohee
ab06aa4bf5 Add support for outgoing request proxying
Closes #2824
2024-09-11 22:36:50 +03:00
Cohee
796b02bb03 Fix hosting on default protocol ports
Closes #2709
2024-08-25 22:59:07 +03:00
Cohee
24a283c724 Split startup error log lines 2024-08-16 11:25:30 +00:00
Cohee
82e569cf08 Unconditional non-fatal server start error logs 2024-08-16 11:21:58 +00:00
Cohee
cb7185fa12 [chore] Fix grammar, add JSDocs 2024-08-15 20:29:17 +03:00
BPplays
da5581e20e
support for Ipv6 (#2593)
* started adding v6 support

* added error checking and change messages to the user

* fixed lsp caused issue

* fixed formatting error

* added error handling to https

* fixed formatting errors

* brought server starting into different func and added enable v6 and v4

* added error checking for disabling both v6 and v4. added option to prefer v6 for dns. added that stuff to the default config

* fixed dumb bug

* changed to settings named disable ipvx

* fixed failed ips still showing as listening

* fixed error handling

* changed ip protocol config layout

* small const name changes

* fixed no error if only available protocol fails, and changed wording of some errors

* fixed error handling saying 'non-fatal error' for protocol fail even when it's the only one enabled

* moved more logic to listen error handler

* fixed eslint issues

* added more info on when to prefer ipv6 for dns

* in conf changed one 'ipv6' to 'IPv6' for consistency

* changed error message and redid how starting the server works

* removed unneeded log

* removed unneeded log

* removed unneeded comments

* fixed errors

* fixed errors

* fixed errors

* changed the wording of ip related error messages

* removed empty lines

* changed to .finally(startServer);

* removed some whitespace

* disabled ipv6 by default ╯︿╰ and changed some message wording

* added auto mode for autorun hostname and changed formatting for listening log and added goto message with autorun url

* added autorun port override

* removed debug log

* changed formatting

* added cli args to ipv6 and autorun stuff

* moved cli args around

* changed formatting

* changed colors for ip

* added avoidLocalhost cli arg

* changed formatting

* changed to not print protocol on listening

* added config option for avoid localhost and changed formatting of messages

* fixed avoid localhost config option

* Fix ipv4 color

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-08-15 20:12:12 +03:00
Cohee
f3cfc4c3c9 Disalow x-forwarded headers in CORS redirect 2024-07-22 14:19:20 +00:00
Cohee
02e65ff176 Configurable session expiration 2024-07-06 14:50:36 +03: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
5b002c6e46 #2422 Move uploads under the data root 2024-06-26 23:22:42 +03:00