Skip to content

BioHazard786/Nyaa-Proxy

Repository files navigation

Nyaa Proxy

⚠️ IMPORTANT NOTICE

All publicly hosted proxies have been nuked/blocked. It's highly recommended to host your own instance for reliable access. Vercel and Netlify are the preferred platforms for easy deployment.

Contributors Forks Stargazers Issues MIT License


Logo

Nyaa Proxy

Easily deployable nyaa proxy to access nyaa from blocked regions

Report Bug · Request Feature

Deploy to Vercel

Deploy to Vercel

Deploy to Netlify

Deploy to Netlify

Deploy to Koyeb

Deploy to Koyeb

Environment Variables

Copy sample.env to .env (local) or import into your platform.

Variable Default Description
PROXY_URL https://nyaa.si Base upstream site to proxy
PORT 8000 Local server port (Docker/Node)
PROXY_RSS_PAGE true If true, rewrite RSS feed URLs to your deployed domain

Using sample.env locally

cp sample.env .env
# Edit .env if you want a different upstream

Vercel Deployment & Env Vars

Install CLI:

npm i -g vercel

Add env vars interactively:

vercel env add PROXY_URL production
vercel env add PROXY_RSS_PAGE production

Pull all remote envs into a local file:

vercel env pull .env.local

Set for preview / development similarly (vercel env add PROXY_URL preview).

Netlify Deployment & Env Vars

Install CLI:

npm i -g netlify-cli

Set individual variables:

netlify env:set PROXY_URL https://nyaa.si
netlify env:set PROXY_RSS_PAGE true

Import all from file:

netlify env:import .env

List:

netlify env:list

Docker Usage (commands only)

Using the included docker-compose.yml (expects .env in the same directory):

# start (detached)
docker compose up -d

# start and build
docker compose up -d --build

# stop and remove containers
docker compose down

# stream service logs
docker compose logs -f nyaa-proxy

Run the official image without compose:

docker run --env-file .env -p 8000:8000 ghcr.io/biohazard786/nyaa-proxy:latest

Build and run locally:

docker build -t nyaa-proxy .
docker run --env-file .env -p 8000:8000 nyaa-proxy

Override specific env vars on the CLI:

docker run -e PROXY_URL=https://example.com -e PORT=8000 -e PROXY_RSS_PAGE=true -p 8000:8000 nyaa-proxy

Cloudflare Workers Note

Cloudflare IP ranges appear banned by nyaa.si; prefer Vercel/Netlify or a VPS. Workers script kept for reference but may not function reliably against the upstream.

Customizing Upstream

Change only the environment variable; no code edits required. For Netlify Functions and Vercel Edge, deploy after updating env vars.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mohd Zaid - Telegram - [email protected]

Project Link : https://github.com/BioHazard786/Nyaa-Proxy

About

Easily deployable nyaa proxy to access nyaa from blocked regions. Using vercel rewrites

Topics

Resources

License

Stars

Watchers

Forks

Packages