Commit Graph

64 Commits

Author SHA1 Message Date
iacore 39af9a741f tweak startup logs 2024-02-18 15:02:19 +00:00
iacore 993c5a0d9c refactor heavily 2024-02-18 14:59:03 +00:00
iacore 40aa760532 Make environment variable documentation a Go file 2024-02-18 14:31:19 +00:00
VnPower 0b228f4315 Experimental novel discovery page 2024-02-18 20:26:20 +07:00
VnPower f3a8b4a5dc Remove inline styles in ranking calendar 2024-02-18 13:05:29 +07:00
VnPower 81848e7080 Fix some errors 2024-02-18 13:05:29 +07:00
iacore 25fe08e6f4 fix: validate json before using gjson 2024-02-18 02:42:31 +00:00
iacore acde7f8279 enable self-proxying by default 2024-02-17 16:31:08 +00:00
iacore d0329d8019 allow proxy URL to have a path component
make self-proxying work
2024-02-17 16:24:27 +00:00
VnPower 31d3b4044f Basic novel page 2024-02-17 21:58:52 +07:00
iacore 19de578040 cleanup <form>s
- validate /tags/%s
2024-02-16 16:14:07 +00:00
iacore e8cfa7ac3c Store full proxy server URL (only the scheme+authority is used though) 2024-02-16 12:57:32 +00:00
iacore 7f194a21bc Apply stricter CSP, and document it. Fix typo in SCSS.
Co-authored-by: perennial <mail@perennialte.ch>
2024-02-16 12:29:40 +00:00
iacore 6f8f204c1e adapt perennial's fix (cbf1c36) to this project 2024-02-15 13:15:16 +00:00
VnPower bf6e79399e Refactor code 2024-02-15 09:29:36 +07:00
VnPower ce1206083a Add indicator for ugoiras #60 2024-02-15 09:15:08 +07:00
iacore fcaf291fc2 store original Image size 2024-02-14 16:11:28 +00:00
iacore a12cd2b6b8 fix typo 2024-02-14 15:28:18 +00:00
VnPower 130fbd52dd Fix ranking calendar images #57 2024-02-14 18:33:50 +07:00
VnPower 2072b019c0 Fix broken artworks because of disabled comments 2024-02-13 16:41:57 +07:00
VnPower 9cebf5b3c4 Fix user-set proxy 2024-02-12 07:05:36 +07:00
iacore 1008119a1a fix error handling 2024-02-11 16:12:25 +00:00
VnPower d32df572a6 Bring back the grid for artwork container 2024-02-11 12:26:16 +07:00
VnPower 54c1bc0918 Reduce requests from /artwork-multi to Pixiv 2024-02-11 10:36:05 +07:00
iacore 508e67737b log development mode 2024-02-10 17:02:38 +00:00
iacore 974e360704 add dev mode (PIXIVFE_DEV=1) 2024-02-10 13:54:09 +00:00
iacore 81aa9c1b6b add semgrep rules 2024-02-10 12:50:38 +00:00
iacore c141e661f0 fix log 2024-02-10 12:14:46 +00:00
VnPower c61f89d048 More ranking page modes 2024-02-10 10:33:31 +07:00
iacore 2bfde536a4 revert indirect proxy 2024-02-09 13:15:11 +00:00
iacore 031caed8e8 fix: revert broken change 2024-02-09 13:11:51 +00:00
iacore ba3ec43559 refactor image url rewrite
thanks semgrep!

Squashed commit of the following:

commit 3a5e08190583804d3b330ecc6cb3422bc04c291b
Author: iacore <noreply+gpg-stub@1a-insec.net>
Date:   Fri Feb 9 12:58:07 2024 +0000

    final

commit f1cdc73e9f8d331715de8e8aec5d1573218df0c3
Author: iacore <noreply+gpg-stub@1a-insec.net>
Date:   Fri Feb 9 12:50:23 2024 +0000

    manual tweak

commit 3a3ba2b8d8d7ce9af4d897288596d9318c715a08
Author: iacore <noreply+gpg-stub@1a-insec.net>
Date:   Fri Feb 9 12:49:15 2024 +0000

    stage 1
2024-02-09 12:59:06 +00:00
iacore 762149be48 refactor 2024-02-09 12:28:40 +00:00
iacore 6e7da47104 proxy i.pximg.net 2024-02-09 12:10:19 +00:00
iacore 4ccb3d60bd Make request limit configurable 2024-02-08 21:51:54 +00:00
VnPower 6f054df4d8 Bump version to v2.2 2024-02-08 14:43:17 +07:00
VnPower bcf9adc927 Limiter with sliding window algorithm 2024-02-08 14:16:27 +07:00
VnPower a01421b3d4 R18 ranking calendar 2024-02-08 13:25:25 +07:00
VnPower 6515e35dd0 Multiple tokens support 2024-02-07 10:30:30 +07:00
VnPower fa01c5d82d Fix user background image not available 2024-02-01 15:09:45 +07:00
VnPower 8c03c79085 Add some artwork-related attributes 2024-01-30 21:18:56 +07:00
VnPower 403d786647 Remove PIXIVFE_BASEURL, thanks to gofiber 2024-01-27 19:48:51 +07:00
VnPower 5a171df021 Proxy ugoira.com and move proxies routes to a separate group #45 2024-01-25 20:12:11 +07:00
VnPower 04d195ef2b Landing page with few components 2024-01-25 12:28:15 +07:00
VnPower 13703838fe Add bookmark route #7 2024-01-23 22:06:50 +07:00
VnPower 0abfdfeb43 Bump version to v2.1 2024-01-22 19:54:11 +07:00
VnPower b5740fb292 Merge pull request 'Add PIXIVFE_HOST' (#46) from iacore/pixivfe:v2 into v2
Reviewed-on: https://codeberg.org/VnPower/PixivFE/pulls/46
2024-01-22 12:49:05 +00:00
VnPower 4d06de3eb3 Proxy s.pximg.net #45 2024-01-22 19:45:21 +07:00
iacore 22ed95a91b Add PIXIVFE_HOST 2024-01-22 11:53:12 +00:00
VnPower 8f65044b00 Fix problems with default token 2024-01-21 21:53:30 +07:00