iacore
0a444bc573
fix type errors
2024-08-28 13:39:15 +00:00
VnPower
a534a8e220
Update MkDocs image to latest
2024-08-28 13:39:15 +00:00
VnPower
4b2a35fd08
Fix CI path matching regex
2024-08-28 13:39:15 +00:00
iacore
7e6528ec5d
add docs
2024-08-28 13:39:15 +00:00
iacore
b7b599f1dd
centralize logging
2024-08-28 13:39:15 +00:00
iacore
5137bf09c2
centralize logging
2024-08-28 13:39:15 +00:00
iacore
700d678699
fix net/http usage
...
correct usage:
1. WriteHeader
2. Write
2024-08-28 13:39:15 +00:00
iacore
ea7042ef22
log every request to pixiv
2024-08-28 13:39:15 +00:00
VnPower
10067ca875
Complete limiter middleware
2024-08-28 13:39:15 +00:00
iacore
d6e879ec1b
clean up requests, move everything into core/requests.go
2024-08-28 13:39:15 +00:00
iacore
285f95699f
Prevent cookie injection
2024-08-28 13:39:15 +00:00
iacore
3c148b05d9
clean up handlers
2024-08-28 13:39:15 +00:00
iacore
d591180fad
separate out error handler
2024-08-28 13:39:15 +00:00
iacore
7b91801c3a
move CSP header to only apply to HTML pages
2024-08-28 13:39:15 +00:00
iacore
65b68862b9
catch error and restore headers properly
2024-08-28 13:39:15 +00:00
VnPower
e7f746e59a
Update
2024-08-28 13:39:15 +00:00
VnPower
40307da725
Remove junk
2024-08-28 13:39:15 +00:00
VnPower
fff9695b66
Add base for limiter
2024-08-28 13:39:15 +00:00
VnPower
9e98de9803
Move the proxy checker up
2024-08-28 13:39:15 +00:00
VnPower
48c62ad532
Fix some novel settings
2024-08-28 13:39:15 +00:00
iacore
c613991351
Use cascadia for css selector
2024-08-28 13:39:15 +00:00
iacore
7555e585e9
clean up
2024-08-28 13:39:15 +00:00
iacore
f713823999
vnpower please check this
2024-08-28 13:39:15 +00:00
iacore
a3360427e8
reorganize docs
2024-08-28 13:39:15 +00:00
iacore
262704391d
fix redirect
2024-08-28 13:39:15 +00:00
iacore
028ea06ad9
write about caching
2024-08-28 13:39:15 +00:00
iacore
c1c99f34b5
organize files
...
add http client with better maxidleconnections
2024-08-28 13:39:15 +00:00
iacore
346ecf74c7
cache proxied images by forwarding headers
2024-08-28 13:39:15 +00:00
iacore
573347f4dd
remove CompatRequest
2024-08-28 13:39:15 +00:00
iacore
26864022d4
clean up redirect codes
2024-08-28 13:39:15 +00:00
iacore
c9f3884f92
replace ?r=/redirect_to with something else.
...
can't shake the fakey feeling. net/http expects one handler max. the way we currently detect redirect param is not one handler.
we should refactor the code out to be called from different handlers
also, wtf is /settings/novelFontType?noredirect=t&r= (redirect or no redirect?)
suggestion: Use Referer. the header exists for a reason. might need to turn off CSP for that.
2024-08-28 13:39:15 +00:00
iacore
5ec33ae18b
clean up
2024-08-28 13:39:15 +00:00
iacore
5166e9a8c6
mostly done
2024-08-28 13:39:15 +00:00
iacore
db32beded5
all type check, no panic
2024-08-28 13:39:15 +00:00
iacore
4dd4ca4901
clean up
2024-08-28 13:39:15 +00:00
iacore
c8476448a2
fix all type errors
2024-08-28 13:39:15 +00:00
iacore
7cfc1ddda4
fix more
2024-08-28 13:39:15 +00:00
iacore
8c0483e05b
fix more
2024-08-28 13:39:15 +00:00
iacore
98df9dd327
fix http.NewRequest with context
2024-08-28 13:39:15 +00:00
iacore
0cdf8eefb9
++
2024-08-28 13:39:15 +00:00
iacore
e70dd8dd7d
update
2024-08-28 13:39:15 +00:00
iacore
ad057345e9
fix it more
2024-08-28 13:39:15 +00:00
VnPower
cf6c17c3fe
Remove duplicated imports and fix cookies?
2024-08-28 13:39:15 +00:00
iacore
6d7c584c0e
remove last panic in http handler
2024-08-28 13:39:15 +00:00
iacore
119f646838
add tip
2024-08-28 13:39:15 +00:00
iacore
907f09acf1
convert part of main.go
2024-08-28 13:39:15 +00:00
VnPower
0b3d2fab97
Merge pull request 'mkdocs-fixes' ( #92 ) from perennial/PixivFE:mkdocs-fixes into v2
...
Reviewed-on: https://codeberg.org/VnPower/PixivFE/pulls/92
2024-08-28 11:18:14 +00:00
perennial
c87c301ae7
doc: document PIXIVFE_PROXY_CHECK_INTERVAL
2024-08-28 20:50:05 +10:00
perennial
c5e83b7441
update pixivfe.pages.dev to pixivfe-docs.pages.dev
2024-08-28 20:46:39 +10:00
perennial
55a3a6546e
doc: add explanatory comments in mkdocs.yml
2024-08-28 20:43:13 +10:00