This commit clarifies the purpose of certain environment variables
by explicitly associating them with token management. The variables
PIXIVFE_MAX_RETRIES, PIXIVFE_BASE_TIMEOUT, and PIXIVFE_MAX_BACKOFF_TIME
are now prefixed with "TOKEN_" to better distinguish them from API-level
settings.
The ServerConfig struct, configuration loading, logging,
and documentation have been updated accordingly.
This commit introduces a new configuration option to disable the image proxy
checker. A new environment variable PIXIVFE_PROXY_CHECK_ENABLED and
corresponding ServerConfig field are added. The main.go file is updated
to conditionally initialise the proxy checker based on this setting.
Documentation is also updated to explain the new configuration options.
This commit introduces a mechanism for randomly selecting User-Agents
from a predefined list to be used for requests to the Pixiv API.
References to setting a custom User-Agent via the PIXIVFE_USERAGENT
environment variable have been removed as it is no longer used.
This commit introduces a new PIXIVFE_REPO_URL configuration option,
allowing users to specify a custom repository URL.
The about page now uses this configurable URL, and the configuration
loading process has been updated to validate and handle the new option.
Documentation has been updated to reflect these changes.
Implement new backoff settings for API requests, distinct from token
management backoff.
Update config, core request handling, and documentation to reflect the
new API request backoff mechanism. Refactor TokenManager to use the
manager's baseTimeout instead of individual token timeouts.