Commit Graph

90 Commits

Author SHA1 Message Date
Cohee b0c115bdec Use fixed version of transformers 2024-08-16 12:03:43 +00: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 008a0c1191 Bump package version 2024-07-27 16:13:39 +03:00
Cohee 6e86ab07dd Bump package version 2024-07-03 09:26:53 +00:00
Cohee 4d67d7d748 Bump package version 2024-06-30 14:16:08 +03:00
Cohee 9923018a49 Update ws dependency 2024-06-19 13:25:29 +03:00
Cohee 66fd973830 Bump package version 2024-06-08 16:55:40 +03:00
Cohee 760af12252 Update AI Horde client library 2024-05-30 21:09:53 +03:00
Cohee 055defa204 Remove unused package reference 2024-05-21 14:18:28 +03:00
Cohee 454a71922d Whack punycode deprecation message 2024-05-20 14:37:10 +03:00
Cohee d902d0d202 Require at least node 18 2024-05-20 14:27:51 +03:00
Cohee 697949c784 Bump package version 2024-05-19 14:31:52 +03:00
Cohee 3113109f0a Use a proper tokenizer for GPT-4o 2024-05-14 15:30:11 +03:00
Cohee 28da838bd1 Add install to plugin manager script 2024-05-13 21:22:01 +03:00
Cohee 10727d9a02 Add plugins update script 2024-05-06 00:49:00 +03:00
Cohee db78346bef Add YT script loader for data bank 2024-04-20 19:58:29 +03:00
Cohee 2fbcbe86d2 Bump package version 2024-04-12 22:15:50 +03:00
Cohee 3f65051bd4 Merge branch 'staging' into neo-server 2024-04-12 22:14:32 +03:00
Cohee 89d3673010 Fix npm audit 2024-04-12 22:13:29 +03:00
Cohee 2af4747936 Bump package version 2024-04-12 22:09:09 +03:00
Cohee 396eeca73a Change default user handle. Use async template renderer 2024-04-12 00:35:51 +03:00
Cohee 31cc6e51b5 Add user backups download 2024-04-09 22:43:47 +03:00
Cohee 411a8ef8a7 Enable CSRF for public endpoints. Split users module. Add rate limiter. 2024-04-09 21:58:16 +03:00
Cohee 6be86be0a7 Save user session to cookies 2024-04-07 19:12:22 +03:00
Cohee 0f105e0300 Fix circular deps, add Helmet https://helmetjs.github.io/ 2024-04-07 18:11:23 +03:00
Cohee c6ffe4502a Add user management endpoints 2024-04-07 17:44:40 +03:00
Cohee b07aef02c7 Persist CSRF and cookie secrets across server launches 2024-04-07 16:41:23 +03:00
Cohee d31e4a3bc4 Bump package version 2024-04-05 22:26:35 +03:00
Cohee 8c83095979 Fix npm audit 2024-03-27 14:20:35 +02:00
Cohee 2369d35846 Bump package version 2024-03-14 23:10:55 +02:00
Cohee ab437fb8ac Override esbuild dependency 2024-03-06 11:30:09 +02:00
valadaptive 4470e87ef9 Un-vendor ai_horde 2024-03-05 08:49:24 -05:00
Cohee 0fcb176408 Bump package version 2024-02-27 21:10:19 +02:00
Cohee 87668f5962 Update tiktoken package 2024-02-10 22:16:59 +02:00
Cohee 97716ea9ca #1681 Remove pkg builds 2024-02-10 21:19:49 +02:00
Cohee 4b845dd442 Add backend for transformers.js whisper 2024-02-02 00:36:40 +02:00
Cohee 4bc7fbcfd7 Bump package version 2024-01-21 15:07:35 +02:00
Cohee 1a80ed7482 Fix npm audit 2024-01-09 01:53:26 +02:00
Cohee 73548faa33 Bump package version 2023-12-23 23:56:09 +02:00
Cohee e74e925428 Bump package version 2023-12-17 03:52:55 +02:00
valadaptive 66953ceba3 Move device type detection to client side
We don't need the server to tell us our user agent--we can get it
ourselves through navigator.userAgent and parse it on the frontend.

I've replaced device-detector-js with Bowser because device-detector-js
is really slow, freezing for up to 500ms to parse a single user agent.
2023-12-14 18:43:59 -05:00
valadaptive 6713faa519 Lint all top-level files, not just server.js 2023-12-06 12:49:35 -05:00
Cohee b09ebb240e Phaseout JSON5 2023-12-03 14:04:43 +02:00
Cohee c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
Cohee 4c475afc91
Merge pull request #1428 from valadaptive/eslint-initial
Initial ESLint setup
2023-12-02 17:14:04 +02:00
valadaptive ec0e4026d8 Initial ESLint setup
This sets up ESLint and its config, and disables a bunch of recommended
lints that currently do not pass. Later PRs/commits will fix those lints
and re-enable them.
2023-12-02 09:02:57 -05:00
kingbri 641cd614c8 Server: Fix CORS proxy with POST requests and status codes
POST requests always sent an undefined body without the bodyParser
middleware which isn't included with express by default. Add this
as a new dependency and inject it into the express app. This middleware
will also be useful for any other middleware that we might create.

Also properly send status codes and messages to the client so they
can be handled properly.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-02 01:43:09 -05:00
Cohee c3259d1929 Bump package version 2023-11-30 01:41:20 +02:00
Cohee a7024a1d34 Migrate to config.yaml 2023-11-25 23:45:33 +02:00
Cohee 9e3072f89b Explicitly add form-data to package.json 2023-11-19 21:05:58 +02:00