mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
2caa497125
This commit implements a system to periodically verify the functionality of image proxies. It adds a new environment variable PIXIVFE_PROXY_CHECK_INTERVAL to control the check interval, defaulting to 8 hours. The change includes a new proxy_checker.go file with the core logic for the proxy checker, updates to config.go to support the new feature, as well as modifications to main.go and settings.go to integrate the checker.
17 lines
513 B
Bash
17 lines
513 B
Bash
# -- PixivFE configuration
|
|
# Refer to https://pixivfe.pages.dev/environment-variables/ for detailed explanations of these variables
|
|
|
|
# -- Required variables
|
|
PIXIVFE_PORT=8282
|
|
# PIXIVFE_UNIXSOCKET=/srv/http/pages/pixivfe
|
|
# PIXIVFE_TOKEN=changethis
|
|
|
|
# -- Optional variables
|
|
PIXIVFE_HOST=127.0.0.1
|
|
# PIXIVFE_REQUESTLIMIT=
|
|
# PIXIVFE_IMAGEPROXY=
|
|
PIXIVFE_USERAGENT=Mozilla/5.0 (Windows NT 10.0; rv:123.0) Gecko/20100101 Firefox/123.0
|
|
PIXIVFE_ACCEPTLANGUAGE=en-US,en;q=0.5
|
|
# PIXIVFE_DEV=
|
|
# PIXIVFE_PROXY_CHECK_INTERVAL=
|