1
0
Fork 1
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-01-19 02:48:37 +00:00
Commit graph

164 commits

Author SHA1 Message Date
Amos Ng c1d459fa7e
Bump server version again :) 2020-07-06 04:26:10 +08:00
Amos Ng c8059eae03
Deprecated Referer checking for hotlink prevention in favour of token verification system 2020-07-06 04:11:44 +08:00
AviKav a20c759700
Move referrer check to before DB access and crypto for token check 2020-07-05 13:36:21 -04:00
AviKav 27bac2ef48
Fix referrer check 2020-07-05 13:02:48 -04:00
carbotaniuman 2907cda312 Update ImageServer.kt 2020-07-04 23:54:07 +00:00
carbotaniuman d84f5a66c1 Immutable 2020-07-04 17:59:20 -05:00
carbotaniuman a8ee77c262 Bump version 2020-07-04 17:56:17 -05:00
carbotaniuman 36ca9347f8 Rollback stuff 2020-07-04 17:51:07 -05:00
carbotaniuman 9c81c415cd Logging overhauls 2020-07-04 14:39:18 -05:00
carbotaniuman e481527fb3 Generate stuff automatically 2020-07-04 14:00:59 -05:00
carbotaniuman 372e136560 Supress logs 2020-07-04 12:14:51 -05:00
carbotaniuman fde00ecb7f Fix stupid bug 2020-07-04 12:11:24 -05:00
carbotaniuman 76d19d7493 Goddangit 2020-07-04 10:54:00 -05:00
carbotaniuman 486626f57e Release 1.1.0 2020-07-04 10:29:49 -05:00
carbotaniuman 61e32327d6 Don't delete DB entries 2020-07-04 10:27:43 -05:00
carbotaniuman 13c372038e Hide secret until @Secret if fixed 2020-07-03 16:37:03 -05:00
carbotaniuman 307b28e13c Report proper hostname 2020-07-03 16:22:40 -05:00
carbotaniuman 56f3b09f65 remove testing code 2020-07-02 16:54:24 -05:00
carbotaniuman 14d9515d2a Renaming + changelog 2020-07-02 16:50:50 -05:00
carbotaniuman 3f237c690d Revert change 2020-07-02 16:45:33 -05:00
carbotaniuman 331f0f030d Validate tokens 2020-07-02 16:45:33 -05:00
wedge1001 62f0d4fa2e fixed referer-check 2020-07-02 21:40:49 +02:00
carbotaniuman 22b0840f99 Update gradle and spotless 2020-07-02 11:06:32 -05:00
wedge1001 63c19f3a73 added optional dev-settings 2020-07-02 16:02:40 +00:00
carbotaniuman f77ed40b5b Clean up some code 2020-07-01 14:56:31 -05:00
carbotaniuman 02f90180df Debug fixes 2020-07-01 13:48:32 -05:00
carbotaniuman 402c083c4e Reorganize some code - add read and write timeouts 2020-06-30 14:10:59 -05:00
carbotaniuman 3445f5d569 Reorganize some code - add read and write timeouts 2020-06-30 14:06:12 -05:00
Amos Ng 620a859d5c
Properly close snapshot if referer invalid 2020-06-29 06:42:44 +08:00
Amos Ng d24c061cc6
Check for mangadex.org prefix rather than checking if referer contains
string
2020-06-29 06:16:28 +08:00
Amos Ng 00e4ac20bb
Added rudimentary support of Referer checking to mitigate hotlinking 2020-06-29 06:09:27 +08:00
carbotaniuman ccb526079c Update changelog, revert gitignore stuff 2020-06-28 12:44:43 -05:00
carbotaniuman c5d3208b9b Merge branch 'master' into 'master'
Added configuration option for external port

See merge request mangadex-pub/mangadex_at_home!40
2020-06-28 17:42:40 +00:00
wedge1001 9d2424bd13 Added configuration option for external port 2020-06-28 17:42:40 +00:00
carbotaniuman 0e6af9e7d3 Add sanity guard 2020-06-28 12:36:30 -05:00
carbotaniuman edf416cfa6 Update cert code to be more general 2020-06-27 13:15:49 -05:00
carbotaniuman 22fc42e7bc Fix state transition bug 2020-06-27 12:27:25 -05:00
Amos Ng 81001ef01e
Full release version 1.0.0 bump 2020-06-23 05:44:07 +08:00
carbotaniuman 21b38b1cf3 Formatting 2020-06-22 12:09:11 -05:00
carbotaniuman cf58756faa Fine-tune logging statements 2020-06-22 12:08:46 -05:00
carbotaniuman 18f05f4ccd Added license headers 2020-06-22 12:02:36 -05:00
carbotaniuman 156de4e84c Add config comments 2020-06-22 11:26:22 -05:00
carbotaniuman 2b2727c4e8 Fix bug 2020-06-22 10:51:09 -05:00
carbotaniuman 2c4cfefb94 Update a pathological case 2020-06-21 22:21:03 -05:00
carbotaniuman 6efff4ce40 Refactor graceful shutdown 2020-06-21 14:49:10 -05:00
carbotaniuman c5a29e07b5 Fix logging for DiskLruCache and don't auto-delete 2020-06-20 11:32:15 -05:00
carbotaniuman 919c5151b0 Adjust shutdown timings 2020-06-19 15:40:05 -05:00
carbotaniuman 976d40c67d Bump version 2020-06-19 15:17:48 -05:00
carbotaniuman 45d329f692 Switch from Gson to Jackson for better null checks and invalid property support 2020-06-19 20:16:24 +00:00
Amos Ng 6c04d19170
Changed default CPU thread count to 4
Apparently, some people like to run M@H on Atoms!
2020-06-19 10:21:12 +08:00
Amos Ng 28418c6315
Update Web-UI version number in Constants.kt 2020-06-19 09:05:08 +08:00
RedMatriz 660af4c512 WebUI 2020-06-19 00:12:15 +00:00
Amos Ng f565ad2161
Bumped version & CHANGELOG.md for RC19 2020-06-19 03:28:37 +08:00
Amos Ng 094347f1c6
Fixed conversion mistake 2020-06-18 07:02:22 +08:00
Amos Ng 52b5458961
Revamp configuration & units 2020-06-18 06:53:46 +08:00
carbotaniuman 74eec1fa53 Merge branch 'webui' into 'master'
Webui

See merge request mangadex/mangadex_at_home!30
2020-06-17 22:46:29 +00:00
RedMatriz 1c3fa630da Webui 2020-06-17 22:46:29 +00:00
carbotaniuman c50c523edb Add graceful shutdown 2020-06-17 17:41:04 -05:00
Amos Ng f43e2a2055
Bumped version number for RC18 2020-06-17 07:11:10 +08:00
carbotaniuman 137414fa77 Update readme 2020-06-16 18:00:28 -05:00
Amos Ng 8b655575e1
Applied spotlessJava 2020-06-16 18:53:01 +08:00
Fugi d27cd91947
Also set Access-Control-Expose-Headers 2020-06-15 22:59:35 -07:00
Fugi 3c7f796c9e
Add Access-Control-Allow-Origin 2020-06-15 22:10:36 -07:00
carbotaniuman 286f2b3bbc Keep alive handler 2020-06-15 22:45:59 -05:00
Amos Ng 70575166a3
Changed log level of response timings to INFO 2020-06-16 09:55:53 +08:00
Amos Ng 0afa1d2eaa
Properly synchronised sqlite3 handler across threads 2020-06-16 08:04:22 +08:00
Amos Ng fa4f89b706
Bumped CLIENT_BUILD in preparation for RC17 2020-06-16 06:31:54 +08:00
carbotaniuman 7eec78e2d2 Use a sqlite DB for metadata 2020-06-15 22:25:31 +00:00
Amos Ng afe83a240b
Fixed tokenized data-saver parser not working 2020-06-16 05:53:57 +08:00
carbotaniuman c74250f045 Increment build version 2020-06-14 21:26:11 -05:00
carbotaniuman a8126b9026 Merge branch 'add-response-timings' into 'master'
Added response timings to trace logs and response headers

See merge request mangadex/mangadex_at_home!24
2020-06-14 23:48:24 +00:00
Amos Ng aa60500fb0 Allow client configuration of hosts binding 2020-06-14 23:47:57 +00:00
Amos Ng f4fa882381
Added response timings to trace logs and response headers 2020-06-14 23:17:08 +08:00
Amos Ng 41d06a2646
Fixed minor linting issue 2020-06-14 19:04:20 +08:00
carbotaniuman 9afa914566 Kotlinify some more things 2020-06-13 18:19:04 -05:00
carbotaniuman 57ba8eb019 Spotless + different log output 2020-06-13 17:46:18 -05:00
carbotaniuman f958b9e7c4 Modularize the image server 2020-06-13 22:36:26 +00:00
carbotaniuman 8d862b2ac2 Fix merge stupidity 2020-06-13 16:14:28 -05:00
carbotaniuman 1818175d4a Commit the roughest POC of an UI ever 2020-06-13 16:09:03 -05:00
carbotaniuman 9f1f30eace Add hourly cache of stats 2020-06-13 11:16:56 -05:00
carbotaniuman 505c917e56 Make Statistics immutable 2020-06-12 22:35:08 -05:00
carbotaniuman f153a11717 Stuff 2020-06-12 14:56:51 -05:00
M 9086e09c60 slight fixes 2020-06-12 13:54:29 -05:00
M 8ccca2ec93 merge 2020-06-12 13:54:29 -05:00
carbotaniuman 83663a786b Squash a lot of things 2020-06-12 13:54:29 -05:00
Amos Ng 662ceb44e4
Made Netty thread count global instead of per-cpu 2020-06-12 20:09:22 +08:00
Amos Ng ecad0a0d34
Replaced exponential calculation for ApacheClient threads
Turns out Kotlin doesn't do powers easily :/
2020-06-12 18:10:42 +08:00
Amos Ng 3706bdaee8
Raising socket limit again, should be neligible for performance.
We need people getting Gbit/s traffic to see if this works :hmm:
2020-06-12 17:21:12 +08:00
carbotaniuman 07ff969422 Rc12 bonanza - fix hourly refresh bug, bump version number 2020-06-11 22:02:59 -05:00
carbotaniuman a70381eea4 Fix nits 2020-06-11 15:13:58 -05:00
Amos Ng 522c96f70f
Added back mdResponse.close()
Accidentally deleted it, whoops!
2020-06-12 04:04:49 +08:00
Amos Ng 40be05e4d4
Made threads-per-cpu configurable for moar speed 2020-06-12 04:04:49 +08:00
Amos Ng ac682e98c3
Made more changes to the numbers used for threading 2020-06-12 04:04:48 +08:00
Amos Ng c87a0c0041
Change ApacheClient to maximum open sockets allowed 2020-06-12 04:04:48 +08:00
Amos Ng a1130d204c
Slight typo. 2020-06-12 04:04:48 +08:00
Amos Ng da47b86d97
Make Netty naive-multithreaded too
Hopefully we can replace this that intelligently scales to a user
setting next time...
2020-06-12 04:04:48 +08:00
Amos Ng 5dbe29c8e9
Shifted closing of pool connections better 2020-06-12 04:04:48 +08:00
Amos Ng 25cfc53674
Added missing connection closer(?) 2020-06-12 04:04:48 +08:00
Fugi 9b3b6633d3
Handle token in URL, report build version 2020-06-09 18:29:28 -07:00
carbotaniuman 82a2ef2ddc Add more logs, remove HTTP support, remove limiter 2020-06-09 17:37:42 -05:00