Commit Graph
100 Commits
Author SHA1 Message Date
Stanley Dimant 4e98a494e0 adjust marehub 2022-08-25 00:54:20 +02:00
Stanley Dimant a5a2ce7e34 partial revert + change 2022-08-25 00:52:58 +02:00
Stanley Dimant 88cec262cd add alias handling to server and database 2022-08-25 00:34:21 +02:00
Stanley Dimant 66e2b3db82 fix auth for grpc calls 2022-08-24 23:01:03 +02:00
Stanley Dimant 5736bcf074 update api 12 2022-08-24 22:04:05 +02:00
Stanley Dimant 5b136685db fixes for standard configs 2022-08-24 21:43:17 +02:00
Stanley Dimant fd23cca840 do not copy appsettings into output 2022-08-24 01:37:20 +02:00
Stanley Dimant bb866b72f7 fix empty header 2022-08-23 23:54:31 +02:00
Stanley Dimant 74209b3952 fixes etc 2022-08-23 13:02:28 +02:00
Stanley Dimant 2510cce711 adjustments to config and cleanup nuget, remove implicit usings 2022-08-23 11:21:21 +02:00
Stanley Dimant afcb268ccc remove unused variable 2022-08-23 02:32:18 +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
Stanley Dimant bdfe51c15c fixes after testing 2022-08-22 15:47:52 +02:00
Stanley Dimant f455d26d9e Merge branch 'main' of https://github.com/Penumbra-Sync/server 2022-08-22 14:38:45 +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 ecb8ffed6f remove console logging 2022-08-22 01:11:50 +02:00
Stanley Dimant 98ee6c7f66 attempt to use lock in Authentication handler to lock down dictionary access 2022-08-20 14:22:50 +02:00
Stanley Dimant 1a22846eea add blocking detection nuget 2022-08-20 02:44:35 +02:00
Stanley Dimant 78543d0fc2 update getpairedclients to use only one query instead of one per entry 2022-08-19 12:18:16 +02:00
Stanley Dimant 7abe4f9f2e update server to api 11 2022-08-19 11:37:31 +02:00
Stanley Dimant c21e2f740c log exception OnDisconnectAsync 2022-08-19 01:10:36 +02:00
Stanley Dimant 54d625e729 remove locks around metrics for testing, add back dbcontext pooling 2022-08-18 01:17:49 +02:00
Stanley Dimant 077f6f3dc4 add max limit for strings 2022-08-16 19:04:53 +02:00
Stanley Dimant 9092c4206f move where statement to foreach in cleanup service 2022-08-16 18:38:19 +02:00
Stanley Dimant 948e4e5dfe Merge branch 'main' of https://github.com/Penumbra-Sync/server 2022-08-16 12:11:42 +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 1bd37ffe70 add header x-forwarded-for 2022-08-15 18:57:11 +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 149a67fd6f add delay ondisconnectasync and throw proper exceptions 2022-08-15 12:53: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
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
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
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
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
Stanley Dimant 6c21606319 fix build 2022-08-03 21:55:53 +02:00
Stanley Dimant 4477e186a3 remove anonymous 2022-08-03 21:51:54 +02:00
Stanley Dimant 9e0ac74de7 get actual IP from connection 2022-08-03 19:42:02 +02:00
Stanley Dimant d5b7dd69e8 minor adjustments 2022-08-03 19:16:01 +02:00
Stanley Dimant 2a902ef15f fix not being able to delete discord auth for not finished reg account 2022-08-03 01:20:31 +02:00
Stanley Dimant b0ec2c5001 fix lodestonemapping crash temp 2022-08-03 01:08:37 +02:00
Stanley Dimant 42f086730f try to fix some crashes 2022-08-03 00:52:13 +02:00
Stanley Dimant 66affed8ae fucking ephemeral 2022-08-03 00:36:54 +02:00
Stanley Dimant fef74cc72a another try with defer 2022-08-03 00:33:32 +02:00
Stanley Dimant c96f45959c adjust verification 2022-08-03 00:17:43 +02:00
Stanley Dimant 5d1726b9cf tfw you forget initialization 2022-08-03 00:03:08 +02:00
Stanley Dimant 0503898d50 try a queue approach 2022-08-03 00:01:56 +02:00
Stanley Dimant 31bc36c136 try to rate limit the registration somewhat 2022-08-02 23:38:17 +02:00
Stanley Dimant bcb4f6565e try to counter the hug of death 2022-08-02 23:26:36 +02:00
Stanley Dimant ee0ccdf0cb enable ephemeral 2022-08-02 23:16:20 +02:00
Stanley Dimant 722b3fbec6 change handle register modal to not defer 2022-08-02 23:14:14 +02:00
Stanley Dimant 4da0c83ff7 fix build error 2022-08-02 23:12:09 +02:00
Stanley Dimant fdea046c77 change some stuff 2022-08-02 23:11:22 +02:00
Stanley Dimant f794d62122 actually purge users on deletion 2022-08-02 22:47:31 +02:00
Stanley Dimant 915152bae9 check for options name during register properly 2022-08-02 22:09:53 +02:00
Stanley Dimant 2d967ab9b6 apparently you cannot have spaces 2022-08-02 22:06:51 +02:00
Stanley Dimant 1c9ce846ca add two named suboptions 2022-08-02 22:05:08 +02:00
Stanley Dimant 0b47ad37ed try adding two options 2022-08-02 22:03:34 +02:00
Stanley Dimant e19d6d882c add forced as subcommand 2022-08-02 22:01:15 +02:00
Stanley Dimant 432994d1d5 remove option from register 2022-08-02 21:57:59 +02:00
Stanley Dimant f1d5601925 add register in addition 2022-08-02 21:56:39 +02:00
Stanley Dimant d3ea056375 adjust date and register forced command 2022-08-02 21:52:25 +02:00
Stanley Dimant 2984660389 add /register forced 2022-08-02 21:48:10 +02:00
Stanley Dimant e0f273a020 add lodestone auth, add rate limiting middleware 2022-08-01 17:41:46 +02:00
Stanley Dimant 4d3226aa8b adjust server to use authentication where needed 2022-08-01 10:42:19 +02:00
Stanley Dimant 7a40eba295 migrate to postgresql 2022-08-01 00:48:21 +02:00
Stanley Dimant 0a4825fe78 add logging of ip 2022-07-31 22:30:25 +02:00
Stanley Dimant 8939585c3c update blabla 2022-07-31 17:32:15 +02:00
Stanley Dimant 641ad52313 wtf am I doing 2022-07-28 18:26:45 +02:00
Stanley Dimant d150d36bd4 fix admin api 2022-07-28 18:22:13 +02:00
Stanley Dimant 1461b01aa4 Merge branch 'main' of https://github.com/Penumbra-Sync/server 2022-07-28 18:03:01 +02:00