Commit Graph

100 Commits

Author SHA1 Message Date
rootdarkarchon
203fa1b194 add statistics 2024-01-16 15:48:21 +01:00
rootdarkarchon
6eac05e91b refactor file server 2024-01-15 12:26:09 +01:00
rootdarkarchon
63286127a2 add alias to jwt, remove caching from auth, remove db usage from files 2024-01-14 11:57:18 +01:00
rootdarkarchon
2c7ff6f73a some file server fixes I guess 2024-01-13 12:08:49 +01:00
rootdarkarchon
c9030d933b do not set "*" as default continent 2024-01-13 11:16:42 +01:00
rootdarkarchon
0a4b44f801 handle lists in config log output 2024-01-13 11:13:49 +01:00
rootdarkarchon
c24ff8c7a1 fix logging wtf is going on even 2024-01-13 11:08:07 +01:00
rootdarkarchon
ba96fd2d5e more logging 2024-01-13 10:57:23 +01:00
rootdarkarchon
53e96d9318 add geoip service for file shard matching 2024-01-12 13:10:14 +01:00
rootdarkarchon
9590722749 adaptations to cache service, move dbcontext to factory and use lazy 2023-11-04 12:10:08 +01:00
rootdarkarchon
3ad4bd8f5e add OnlineSyncedPairCacheService 2023-11-03 11:10:49 +01:00
rootdarkarchon
1f8a3d91bf optimize GetAllPairedUnpausedUsers 2023-10-27 12:18:01 +02:00
rootdarkarchon
6fc2f1e90c some fixes on cache creation stuff I think 2023-10-18 09:33:27 +02:00
rootdarkarchon
e4a6657391 fix server tokens probably 2023-10-18 02:09:33 +02:00
rootdarkarchon
96dd499923 I cri 2023-10-18 02:03:37 +02:00
rootdarkarchon
a78f9f2ea7 fix handlers again 2023-10-17 22:24:50 +02:00
rootdarkarchon
674c92f6b6 fix requirement handlers 2023-10-17 22:11:03 +02:00
rootdarkarchon
302e6ffb62 Mare 0.9 (#27)
* add jwt expiry

* update api

* merge

* start rework permissions

* ok so in theory this compiles

* make it work I guess

* reuse some permissions

* fix intermediate connectivity issues

* fixes

* whatever

* some fixes I guess

* fix some stuff

* idk some random fixes I guess

* change some defaults

* update nuget

* adjust order of operations

* adjust deletion of account

* remove todo

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-10-17 21:36:33 +02:00
rootdarkarchon
7e90187822 rebuild discord bot to better user interactions 2023-09-17 00:05:57 +02:00
rootdarkarchon
255798c0c6 add gauges for queue free/active/inactive 2023-08-02 10:14:27 +02:00
rootdarkarchon
32e9cf7795 add request size counters 2023-08-01 22:09:45 +02:00
rootdarkarchon
ef1aea2f29 fix include 2023-05-29 02:04:27 +02:00
rootdarkarchon
cc304d5f54 fix purging of users with secondary uids I guess 2023-05-29 02:03:14 +02:00
rootdarkarchon
1c0c213c93 update dependencies 2023-05-09 13:04:21 +02:00
rootdarkarchon
5d76553ff8 add fields to db 2023-04-20 09:53:27 +02:00
rootdarkarchon
7b0ac34623 add mare profiles 2023-03-19 18:57:55 +01:00
rootdarkarchon
2cfd005fed remove explicit prom aspnetcore 2023-03-15 11:36:22 +01:00
rootdarkarchon
d388a7f279 downgrade prometheus to 7.0.0 2023-03-15 11:24:04 +01:00
rootdarkarchon
e0880d8b25 add explicit efcore relational dep 2023-03-14 20:22:48 +01:00
rootdarkarchon
48323d68b0 [Draft] Update 0.8 (#25)
* get rid of file handling through grpc and signalr

* fix upload on controller

* adapt usersetpairpermissions

* send user perms

* server-side fixes

* rework file upload

* adjust log level to debug in docker standalone json

* update dependencies

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-03-14 19:46:59 +01:00
rootdarkarchon
aa03d400d4 - reload configs on change
- remove grpc config service replace with http
- add messaging to channel
2023-02-25 12:20:59 +01:00
rootdarkarchon
3490c5c8d8 adjust extensions, again and again 2023-02-10 15:18:34 +01:00
rootdarkarchon
03d7549d29 adjust ip address extensions again 2023-02-10 15:15:33 +01:00
rootdarkarchon
42694a872f remove empty entries on ip address split 2023-02-10 13:35:50 +01:00
rootdarkarchon
674387a26a updates to dependencies 2023-02-05 12:49:05 +01:00
rootdarkarchon
677224e363 add secondary UID stuff 2023-01-31 23:33:04 +01:00
rootdarkarchon
cdba293aa1 migrate groups in priority of moderator, then pinned status 2023-01-30 12:25:39 +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
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
617bc6afc8 fix token generation 2023-01-11 13:29:49 +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
a182f36485 attempt to switch ident service to redis 2023-01-08 14:51:56 +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
7f49ca8627 increase timer again 2023-01-02 01:38:53 +01:00