Overview:
The content provides information on setting up a Pixiv service proxy and deploying it with Vercel, highlighting key features and unique APIs offered by PixivNow. It also addresses the issue of unauthorized crawling of the service and explains the authentication methods using user tokens.
Features:
- Pixiv Service Proxy: Deployed using Vercel, access to Pixiv content through a proxy server.
- API Authentication: User token passed through headers or cookies for authorization.
- Unique APIs: Includes /api/illust/random for random images, /api/ranking as a redirect to /ranking.php, and /user for user information retrieval.
- Image Proxy: Images served through CloudFlare Workers, accessible for viewing artworks securely.
- Anti-Hotlinking: Prevents unauthorized access to images through a hotlink protection service.
Installation:
To deploy a similar service with Vercel, follow these steps:
- Click on the deploy button above.
- Follow the on-screen instructions to complete the deployment process.
To set up the image proxy service with Vercel:
- Set the environment variable VITE_PXIMG_BASEURL_I to the desired reverse proxy URL.
- Alternatively, modify the redirection configuration for images in vercel.json to match the source site’s URL structure.
Summary:
The content details the setup process for a Pixiv service proxy utilizing Vercel, offering unique APIs for accessing Pixiv content securely. It also addresses concerns related to unauthorized crawling of the service and provides guidelines for deploying and configuring the image proxy service. Stay compliant with the Apache License, ensuring proper usage of the provided software and resources.