mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-02-03 18:24:03 +08:00
- Upgrade VitePress from 1.0.0-rc.4 to 1.6.4 (stable) - Update all dependencies (vue 3.5, typescript 5.6, @vue/tsconfig 0.5) - Remove defunct Documate AI integration and google-analytics plugin - Add Google Analytics via head config instead - Translate all 25+ documentation pages from Chinese to English - Add comprehensive REST API reference (docs/api/index.md) - Add v3.2 changelog to sidebar navigation (fixes dead link) - Update version string from v3.1 to v3.2 - Fix homepage changelog link to point to v3.2 - Update all WebUI screenshots with current v3.2 UI - Add new screenshots: calendar view, bangumi poster wall - Remove obsolete files: documate.json, deploy/windows.md, deploy/unix.md - Update CSS variables for VitePress 1.6.x compatibility Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
2.8 KiB
2.8 KiB
Proxy and Reverse Proxy
Proxy
{width=500}{class=ab-shadow-card}
AB supports HTTP and SOCKS5 proxies to help resolve network issues.
- Enable: Whether to enable the proxy.
- Type is the proxy type.
- Host is the proxy address.
- Port is the proxy port.
::: tip In SOCKS5 mode, username and password are required. :::
config.json Configuration Options
The corresponding options in the configuration file are:
Configuration section: proxy
| Parameter | Description | Type | WebUI Option | Default |
|---|---|---|---|---|
| enable | Enable proxy | Boolean | Proxy | false |
| type | Proxy type | String | Proxy type | http |
| host | Proxy address | String | Proxy address | |
| port | Proxy port | Integer | Proxy port | |
| username | Proxy username | String | Proxy username | |
| password | Proxy password | String | Proxy password |
Reverse Proxy
- Use the Mikan Project alternative domain
mikanime.tvto replacemikanani.mein your RSS subscription URL. - Use a Cloudflare Worker as a reverse proxy and replace all
mikanani.medomains in the RSS feed.
Cloudflare Workers
Based on the approach used to bypass blocks on other services, you can set up a reverse proxy using Cloudflare Workers. How to register a domain and bind it to Cloudflare is beyond the scope of this guide. Add the following code in Workers to use your own domain to access Mikan Project and download torrents from RSS links:
const TELEGRAPH_URL = 'https://mikanani.me';
const MY_DOMAIN = 'https://yourdomain.com'
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const url = new URL(request.url);
url.host = TELEGRAPH_URL.replace(/^https?:\/\//, '');
const modifiedRequest = new Request(url.toString(), {
headers: request.headers,
method: request.method,
body: request.body,
redirect: 'manual'
});
const response = await fetch(modifiedRequest);
const contentType = response.headers.get('Content-Type') || '';
// Only perform replacement if content type is RSS
if (contentType.includes('application/xml')) {
const text = await response.text();
const replacedText = text.replace(/https?:\/\/mikanani\.me/g, MY_DOMAIN);
const modifiedResponse = new Response(replacedText, response);
// Add CORS headers
modifiedResponse.headers.set('Access-Control-Allow-Origin', '*');
return modifiedResponse;
} else {
const modifiedResponse = new Response(response.body, response);
// Add CORS headers
modifiedResponse.headers.set('Access-Control-Allow-Origin', '*');
return modifiedResponse;
}
}