Commit Graph

86 Commits

Author SHA1 Message Date
rootdarkarchon
989046da13 add geoip service for file shard matching
fix bug

more logging

fix logging wtf is going on even

handle lists in config log output

do not set "*" as default continent

do not rely on "*" being present in configuration when picking file shard
2024-08-27 14:11:23 +00:00
Stanley Dimant
348781e5f5 remove grpc 2024-06-11 07:31:34 +00:00
Stanley Dimant
72df676c9d update server to net 8
up conn semaphore

add http logging to files

update prometheus?

downgrade again to net7?

temp downgrade to net7 again?

net8 for static file server attempt #2

loporrit: MareAPI .NET8 update
2024-06-11 07:31:20 +00:00
Loporrit
be1edba5c2 Remove group bans on user deletion 2024-03-14 18:50:55 +00:00
Loporrit
d871002d01 Account registration endpoint 2023-09-01 19:10:27 +00: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
rootdarkarchon
738c913be9 move some stuff around, pray 2023-01-01 23:36:34 +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
2a5e505130 readd auth header 2022-12-31 12:56:18 +01:00
rootdarkarchon
cbe361208c some changes to auth 2022-12-29 20:14:47 +01:00
rootdarkarchon
4196ab4062 bump shared to 7.0 2022-12-28 14:41:11 +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
18a9a76dcd remove semaphore 2022-12-27 23:51:41 +01:00
rootdarkarchon
097d7d16e9 remove grpc from common calls to reduce locking 2022-12-27 23:49:25 +01:00
rootdarkarchon
761f208828 make semaphore readonly 2022-12-27 21:59:59 +01:00
rootdarkarchon
3ba37515ab some fixes for server, perhaps 2022-12-27 21:59:41 +01:00
rootdarkarchon
b8c10c4298 adjustments for grpc service client 2022-12-27 20:08:18 +01:00
rootdarkarchon
4d1ef1f871 something something metrics 2022-12-27 15:43:58 +01:00