Commit Graph

46 Commits

Author SHA1 Message Date
rootdarkarchon
674387a26a updates to dependencies 2023-02-05 12:49:05 +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
fe80faab6b potentially fix stuck uploads 2023-01-18 19:46:03 +01:00
rootdarkarchon
9605be8d4a minor stylefixes 2023-01-14 12:54:11 +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
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
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
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
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
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
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
8f35a55bd8 limit parallel uploads to 20 per server 2022-12-22 23:19:46 +01:00
rootdarkarchon
d37c1208fe Adjust Auth on server (#15)
* add auth that verifies identity is marked online

* few changes for testing

* handle identity with requirements

* remove unnecessary logging from auth handler

* change to UserRequirements

* fixes to checks

* fixes to UserRequirementHandler

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2022-10-10 19:44:30 +02:00
rootdarkarchon
777a764ef1 move marehub to strong api usage (#14)
* move marehub to strong api usage

* fix merge issues

* latest api

* further optimizations
2022-10-08 14:33:25 +02:00
rootdarkarchon
bff21ead95 Syncshells (#11)
* some groups stuff

* further groups rework

* fixes for pause changes

* adjsut timeout interval

* fixes and namespace change to file scoped

* more fixes

* further implement groups

* fix change group ownership

* add some more stuff for groups

* more fixes and additions

* some fixes based on analyzers, add shard info to ui

* add discord command, cleanup

* fix regex

* add group migration and deletion on user deletion

* add api method for client to check health of connection

* adjust regex for vanity

* fixes for server and bot

* fixes some string comparison in linq queries

* fixes group leave and sets alias to null

* fix syntax in changeownership

* add better logging, fixes for group leaving

* fixes for group leave

Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
2022-10-04 14:13:43 +02:00
rootdarkarchon
1f66b2c980 add redis for character identification 2022-09-13 11:45:09 +02:00
Stanley Dimant
507c7cac11 delete temporary created files 2022-08-29 09:27:43 +02:00
Stanley Dimant
3a6c9259a0 fixes for file uploads 2022-08-27 01:13:49 +02:00
Stanley Dimant
66e2b3db82 fix auth for grpc calls 2022-08-24 23:01:03 +02:00
Stanley Dimant
5b136685db fixes for standard configs 2022-08-24 21:43:17 +02:00
Stanley Dimant
2510cce711 adjustments to config and cleanup nuget, remove implicit usings 2022-08-23 11:21:21 +02:00
Stanley Dimant
dab12fbb30 add hashes to filesizerequest 2022-08-23 02:31:44 +02:00
Stanley Dimant
a63174009f decouple fileservice to be able to run standalone 2022-08-23 02:28:04 +02:00
rootdarkarchon
f9e4fd4f2d minor refactoring 2022-08-22 14:24:47 +02:00
rootdarkarchon
6c243d0247 move shared content to shared project 2022-08-22 11:21:28 +02:00
Stanley Dimant
927e1aaceb potential optimizations (ConfigureAwait, Logging Templates) 2022-08-22 10:46:37 +02:00
Stanley Dimant
7abe4f9f2e update server to api 11 2022-08-19 11:37:31 +02:00
Stanley Dimant
e83d668724 sql query optimization, add server cache hard limit, try catch separate around every block 2022-08-16 12:11:36 +02:00
Stanley Dimant
f55ff9f6a3 adjust server to new api and send back url for file download on DownloadFilesDto 2022-08-15 17:56:16 +02:00
Stanley Dimant
a33cf2b2d1 overwrite on move file 2022-08-12 17:41:09 +02:00
Stanley Dimant
ea74dde4c3 write uploads to file instead of memory 2022-08-12 12:47:06 +02:00
Stanley Dimant
30b86b71a9 optimize SendFiles 2022-08-07 13:59:26 +02:00
Stanley Dimant
1877bf9243 add amount of files sent with every sendfiles request 2022-08-07 12:32:10 +02:00
Stanley Dimant
95586549e5 fix memory leak, try something different for metrics 2022-08-04 12:56:01 +02:00
Stanley Dimant
8939585c3c update blabla 2022-07-31 17:32:15 +02:00
Stanley Dimant
31cf7964a4 change to synchronized read 2022-07-22 10:37:41 +02:00
Stanley Dimant
130350b71b lock metrics calls 2022-07-17 01:13:29 +02:00
Stanley Dimant
17c69666e8 add prometheus 2022-07-15 02:04:04 +02:00
Stanley Dimant
a416521aab update to API 5, consolidate hubs into one 2022-07-13 14:05:42 +02:00