Git Product home page Git Product logo

pixiv-proxy's Introduction

Pixiv Proxy

An alternative frontend for pixiv.net

Usage

./reapixa --port 8080 --host https://example.org --cookie PHPSESSID=...

If no cookie is provided, a guest cookie will be fetched.

NGINX

It is recommended to add these nginx rules for caching, disallowing crawlers and forwarding image proxies.

location = /robots.txt {
	add_header Content-Type text/plain;
	return 200 "User-agent: *\nDisallow: /";
}
location /imageproxy/ {
	proxy_pass https://i.pximg.net/;
	proxy_set_header Referer https://pixiv.net;
	proxy_hide_header Set-Cookie;
	proxy_buffering off;
}
location /simg/ {
	proxy_pass https://s.pximg.net/;
	proxy_set_header Referer https://pixiv.net;
	proxy_hide_header Set-Cookie;
	proxy_buffering off;
}
location /spix/ {
	proxy_pass https://img-sketch.pixiv.net/;
	proxy_set_header Referer https://sketch.pixiv.net;
	proxy_hide_header Set-Cookie;
	proxy_buffering off;
}
location /spxi/ {
	proxy_pass https://img-sketch.pximg.net/;
	proxy_set_header Referer https://sketch.pixiv.net;
	proxy_hide_header Set-Cookie;
	proxy_buffering off;
}
location /ugoira {
	proxy_pass http://127.0.0.1:8080/ugoira;
	proxy_cache STATIC;
	proxy_cache_valid 200 30d;
	add_header X-Cache-Status $upstream_cache_status;
}
location / {
	proxy_pass http://127.0.0.1:8080$request_uri;
	proxy_cache STATIC;
	proxy_cache_valid 200 3m;
	add_header X-Cache-Status $upstream_cache_status;
}

pixiv-proxy's People

Contributors

hookedbehemoth avatar

Stargazers

Vladyslav Tatarin avatar flash avatar Still / Azaka avatar

Watchers

James Cloos avatar  avatar

pixiv-proxy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.