Files
pixivnow/wrangler.toml
JuLuogo ebf6833e70 fix(proxy): 更换代理服务为 allorigins.win 并更新处理逻辑
更新代理配置从自定义代理服务改为使用 allorigins.win 服务,并相应修改代理请求处理逻辑。当代理请求失败时,自动回退到直接请求方式。同时移除了未使用的 Google AdSense 脚本。
2025-10-08 17:37:25 +08:00

25 lines
728 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name = "pixivnow-worker"
main = "functions/[[path]].ts"
compatibility_date = "2023-10-30"
# Workers Sites 配置 - 用于部署静态资源
[site]
bucket = "./dist"
# 环境变量配置
# 这些变量都有默认值,可以根据需要自定义
[vars]
# User-Agent 黑名单JSON 数组格式)
# 代理IP配置可选用于绕过Pixiv WAF
PROXY_IP = "api.allorigins.win/get?url="
# 自定义图片代理 URL可选默认使用 Pixiv 原始 URL
# 示例配置:
# VITE_PXIMG_BASEURL_I = "https://i.pixiv.re/"
# VITE_PXIMG_BASEURL_S = "https://s.pixiv.re/"
VITE_PXIMG_BASEURL_I = "https://i.1.0721030.xyz/"
VITE_PXIMG_BASEURL_S = "https://s.i.0721030.xyz/"
[[rules]]
type = "ESModule"
globs = ["**/*.ts"]