Commit Graph

233 Commits

Author SHA1 Message Date
Lily
b9c99fcdb5 Change CdnBaseUrl to CdnFullUrl (match implementation)
This PR fixes an issue with the default `appsettings.json` where `CdnBaseUrl` was specified instead of `CdnFullUrl`, which is what is used in the actual project. On self-hosted servers this leads to a failure to download updated files because of an incorrectly specified URL.
2022-08-16 00:06:53 -05:00
Stanley Dimant
1bd37ffe70 add header x-forwarded-for 2022-08-15 18:57:11 +02:00
rootdarkarchon
dbaf45ba70 Merge pull request #9 from isbeorn/main
Prevent unnecessary left join
2022-08-15 17:56:48 +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
Stefan Berg
991921f188 Prevent unnecessary join 2022-08-15 15:42:51 +02:00
Stanley Dimant
149a67fd6f add delay ondisconnectasync and throw proper exceptions 2022-08-15 12:53:36 +02:00
rootdarkarchon
c7dccc7e58 Merge pull request #8 from isbeorn/main
change query so only one query has to be sent in MareHub.OnDisconnectedAsync
2022-08-15 12:46:48 +02:00
Stefan Berg
5f84ca51ba merge latest 2022-08-15 12:45:19 +02:00
Stefan Berg
8e39b8e98c Adapt scenario 2022-08-15 12:42:04 +02:00
Stefan Berg
3a1bda96ed change query so only one query has to be sent in MareHub.OnDisconnectedAsync 2022-08-15 12:39:55 +02:00
Stefan Berg
acfc96c253 Merge branch 'main' of https://github.com/isbeorn/mare-server 2022-08-15 10:56:36 +02:00
Stanley Dimant
697b4c39ca add rate limiting for disconnects, logging exceptions and minor query optimizations for disconnects 2022-08-15 02:22:02 +02:00
Stefan Berg
d72ed1ba3b Merge remote-tracking branch 'root/main' 2022-08-15 02:04:25 +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
50ff75c7ab cancel and dispose cts in ban auth 2022-08-12 10:57:03 +02:00
Stanley Dimant
c3fc83e819 re-add memorycache 2022-08-12 00:38:09 +02:00
Stanley Dimant
cc7d638249 forgot to remove timer 2022-08-12 00:35:09 +02:00
Stanley Dimant
d4c8a15f50 update status via task, update nuget packages 2022-08-12 00:26:27 +02:00
Stanley Dimant
a5fe927cd5 disable context pooling 2022-08-11 10:50:23 +02:00
Stanley Dimant
f29edbd1c3 dispose db context from services 2022-08-10 23:39:55 +02:00
Stanley Dimant
ffe24b0e71 revert to defaults worker count 2022-08-10 23:24:10 +02:00
Stanley Dimant
ef70dd5882 add threadpool info to statistics, change systeminfo to grab online users from db instead of metrics 2022-08-08 11:27:57 +02:00
Stefan Berg
c95d0e1d09 Rename test 2022-08-07 15:44:45 +02:00
Stanley Dimant
30b86b71a9 optimize SendFiles 2022-08-07 13:59:26 +02:00
Stanley Dimant
68200d6d7d try throttling incoming connections 2022-08-07 12:41:06 +02:00
Stanley Dimant
1877bf9243 add amount of files sent with every sendfiles request 2022-08-07 12:32:10 +02:00
Stanley Dimant
1e73ab55c5 add temp ban on failed auth 2022-08-06 19:26:35 +02:00
rootdarkarchon
52c3491168 Merge pull request #7 from Penumbra-Sync/cached_auth
Add cached + limited authentication and possibility to ban discord/lodestone accounts
2022-08-06 12:49:58 +02:00
Stanley Dimant
1953de8c38 remove authentication as well when user deletes their account 2022-08-06 12:44:17 +02:00
Stanley Dimant
332e5a04d4 change to waitasync for semaphore 2022-08-06 12:35:39 +02:00
Stanley Dimant
ad367d7568 add some form of caching to the authorization 2022-08-06 12:33:25 +02:00
Stanley Dimant
8047710b50 remove auth from basehub 2022-08-06 03:07:15 +02:00
Stanley Dimant
9c11d8dcbc add userid to ratelimit calls 2022-08-06 00:43:26 +02:00
Stanley Dimant
5adcb7421b don't send any systeminfo to clients 2022-08-05 12:48:26 +02:00
Stanley Dimant
95586549e5 fix memory leak, try something different for metrics 2022-08-04 12:56:01 +02:00
Stanley Dimant
0dc4436ba3 bump api 2022-08-04 01:09:49 +02:00
Stanley Dimant
2170eb127e adjust signalR limit filter to include connection handling 2022-08-03 23:56:03 +02:00
Stanley Dimant
74efb5eb6a try onconnected rate limiting 2022-08-03 23:34:52 +02:00
Stanley Dimant
831029a244 Revert "remove throttling"
This reverts commit ccb9478f70.
2022-08-03 23:17:20 +02:00
Stanley Dimant
6dafbe77ba Revert "shuffle things around"
This reverts commit b9c6660e08.
2022-08-03 23:17:17 +02:00
Stanley Dimant
ccb9478f70 remove throttling 2022-08-03 23:02:42 +02:00
Stanley Dimant
b9c6660e08 shuffle things around 2022-08-03 22:58:07 +02:00
Stefan Berg
32ad6f2b38 Rename test 2022-08-03 22:46:47 +02:00
rootdarkarchon
f7fa128efa Merge pull request #6 from isbeorn/main
Fix lodestone character id extraction
2022-08-03 22:45:52 +02:00
Stefan Berg
60439535e7 Fix lodestone character id extraction 2022-08-03 22:43:11 +02:00
Stanley Dimant
8181018c6d try something more for rate limiting 2022-08-03 22:43:00 +02:00
Stanley Dimant
aebb7fdbb0 adjust contextaccessor 2022-08-03 22:18:29 +02:00
Stanley Dimant
6da875713f add httpcontextaccessor 2022-08-03 22:16:30 +02:00
Stanley Dimant
0b68d199d0 remove reconnect handler 2022-08-03 22:09:42 +02:00