Commit Graph

268 Commits

Author SHA1 Message Date
rootdarkarchon
6f9bacab5b Messagepack (#24)
* add messagepack to signalr

* add resolvers to messagepack

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-02-10 12:30:03 +01:00
rootdarkarchon
450455fb38 Merge branch 'main' of https://github.com/Penumbra-Sync/server 2023-02-05 12:49:19 +01:00
rootdarkarchon
674387a26a updates to dependencies 2023-02-05 12:49:05 +01:00
rootdarkarchon
b3103509e3 log exception ondisconnected async 2023-02-02 11:31:51 +01:00
rootdarkarchon
677224e363 add secondary UID stuff 2023-01-31 23:33:04 +01:00
rootdarkarchon
96e89437c0 do not send alias when alias is empty but send null instead 2023-01-30 23:48:57 +01:00
rootdarkarchon
edb04c8d9d fixes to useraddpair when adding via vanity uid 2023-01-30 11:38:32 +01:00
rootdarkarchon
b717e824b2 fix adding sending data client shouldn't receive 2023-01-29 20:41:07 +01:00
rootdarkarchon
ca16b08a2f Server rework for API change and paradigm shift (#23)
* start with group permissions implementation

* some minor refactoring

* adjust hub for api changes

* fixes and database migration

* fixes sending online/offline message to clients stuff

* remove admin stuff from server

* fixes get server permissions

* send group pair info to client on joining a group

* send online only on sending connection dto

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-29 15:15:02 +01:00
rootdarkarchon
4932b4a8d9 fix UserAddPair 2023-01-23 17:13:37 +01:00
rootdarkarchon
c7f793e82c fix linq 2023-01-23 09:35:55 +01:00
rootdarkarchon
541f86c116 block anything from user data that is not allowed to be synced 2023-01-23 09:34:57 +01:00
rootdarkarchon
4dade47819 adjustments to auth 2023-01-21 02:46:18 +01:00
rootdarkarchon
99cf46875b actually add invalid game paths and file swap paths to show in the error message 2023-01-19 18:30:29 +01:00
rootdarkarchon
d7e664477f Merge branch 'main' of https://github.com/Penumbra-Sync/server 2023-01-18 19:46:36 +01:00
rootdarkarchon
fe80faab6b potentially fix stuck uploads 2023-01-18 19:46:03 +01:00
rootdarkarchon
35f61d5387 add configurable redis pool and allow redis timeout 2023-01-18 11:11:59 +01:00
rootdarkarchon
4bd71a5889 Download rework (#22)
* rework server to send download ready back via signalr

* adjust queue handling for removal

* adjust api to main

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-15 16:00:38 +01:00
rootdarkarchon
9605be8d4a minor stylefixes 2023-01-14 12:54:11 +01:00
rootdarkarchon
8c39f9ce81 fix null in AuthorizeAsync 2023-01-11 23:05:00 +01:00
rootdarkarchon
42b15cb6b7 Add Server-Side Download Queue (#21)
* test add queueing to file service

* further adjustments to download queueing

* add check for whether the request is still in the queue to CheckQueue

* forcefully release slot if download didn't finish in 15s

* actually cancel the delay task

* add metrics and refactor some of the request queue service

* refactor pathing

* reuse httpclient

* add queue request dto to requestfile, enqueue users immediately if a slot is available

* change startup to include all controllers

* update server pathing

* update pathing, again

* several adjustments to auth, banning, jwt server tokens, renaming, authorization

* update api I guess

* adjust automated banning of charaident and reg

* generate jwt on servers for internal authentication

* remove mvcextensions

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-11 12:22:22 +01:00
rootdarkarchon
db2d0451ca adjust grabbing all keys from redis on the shards 2023-01-08 21:04:11 +01:00
rootdarkarchon
f37fee3235 attempt redis connection pooling 2023-01-08 19:27:39 +01:00
rootdarkarchon
8c41f41597 add gauge for authorized connections 2023-01-08 15:04:20 +01:00
rootdarkarchon
a182f36485 attempt to switch ident service to redis 2023-01-08 14:51:56 +01:00
rootdarkarchon
dfdc620816 change log level to debug 2023-01-07 17:54:12 +01:00
rootdarkarchon
f760f8ad65 Revert "add FileDbService to handle file requests"
This reverts commit f6af114d44.
2023-01-07 17:53:20 +01:00
rootdarkarchon
f6af114d44 add FileDbService to handle file requests 2023-01-07 11:36:20 +01:00
rootdarkarchon
d328056b9b fix claims and logging in files controller 2023-01-07 01:57:16 +01:00
rootdarkarchon
74b7fcdf89 Refactoring using Claims more, add Server Side Messaging (#20)
* add some refactoring based on claims, handle chara ident inside claim, fix discord userid in log

* improve authentication responses, add server side messaging

* update server to mainline api

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-04 15:49:18 +01:00
rootdarkarchon
5f0c12ecfa Switch to JWT authentication (#19)
* switch to jwt authentication

* fix delete files

* adjust saving of deletion of all files

* update api to main/jwt

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-02 17:07:34 +01:00
rootdarkarchon
bdd8830c8e add healthchecks to docker 2023-01-02 02:50:33 +01:00
rootdarkarchon
738c913be9 move some stuff around, pray 2023-01-01 23:36:34 +01:00
rootdarkarchon
8878295f93 adjust random order of files 2023-01-01 20:12:57 +01:00
rootdarkarchon
f8c9d1e64f shuffle cdn shard configs to allow for multiple file shards to handle one file, randomly distributing 2023-01-01 17:32:22 +01:00
rootdarkarchon
9a9beb9a65 fix error message on user push data 2022-12-31 18:15:32 +01:00
rootdarkarchon
b6404a9c1d add horizontal file sharding based on filename matches 2022-12-31 14:28:24 +01:00
rootdarkarchon
cf082496e9 actually save file with commit 2022-12-30 22:39:36 +01:00
rootdarkarchon
da738bafd9 replace non-digits and letters from string for FilesSend 2022-12-30 22:39:15 +01:00
rootdarkarchon
cbe361208c some changes to auth 2022-12-29 20:14:47 +01:00
rootdarkarchon
8cd9c20385 add asnotracking 2022-12-28 14:35:29 +01:00
rootdarkarchon
31550b0aeb move GetFileSize to database 2022-12-28 04:50:37 +01:00
rootdarkarchon
de2defe692 rework MareConfigurationServiceClient 2022-12-28 04:24:53 +01:00
rootdarkarchon
3ba37515ab some fixes for server, perhaps 2022-12-27 21:59:41 +01:00
rootdarkarchon
4d1ef1f871 something something metrics 2022-12-27 15:43:58 +01:00
rootdarkarchon
d83e4e060f fix default metrics port for server 2022-12-27 14:02:49 +01:00
rootdarkarchon
9eb5967935 rework server responsibilities (#18)
* rework server responsibilities
add remote configuration

* start metrics only when compiled as not debug

* add some more logging to discord bot

* fixes of some casts

* make metrics port configurable, minor fixes

* add docker bullshit

* md formatting

* adjustments to docker stuff

* fix docker json files, fix some stuff in discord bot, add /useradd for Discord bot

* adjust docker configs and fix sharded.bat

* fixes for logs, cache file provider repeat trying to open filestream

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2022-12-27 13:48:05 +01:00
rootdarkarchon
7ee7fdaf48 switch around all iconfiguration usage to ioptions 2022-12-23 01:53:21 +01:00
rootdarkarchon
8f35a55bd8 limit parallel uploads to 20 per server 2022-12-22 23:19:46 +01:00
rootdarkarchon
ea19231851 remove unnecessary usings from solution, fixes in metrics 2022-12-20 12:00:23 +01:00