Files
PixivFE/.env.example
T
perennial c3bb477132 Rename token management environment variables
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.
2024-09-24 19:32:14 +10:00

37 lines
905 B
Bash

# PixivFE configuration
# Refer to https://pixivfe-docs.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_ACCEPTLANGUAGE=
# PIXIVFE_PROXY_CHECK_ENABLED=
# PIXIVFE_PROXY_CHECK_INTERVAL=
# PIXIVFE_TOKEN_LOAD_BALANCING=
# PIXIVFE_REPO_URL=
### Network proxy settings
# HTTPS_PROXY=
# HTTP_PROXY=
### Exponential backoff configuration
#### API request level backoff
# PIXIVFE_API_MAX_RETRIES=
# PIXIVFE_API_BASE_TIMEOUT=
# PIXIVFE_API_MAX_BACKOFF_TIME=
#### Token management level backoff
# PIXIVFE_TOKEN_MAX_RETRIES=
# PIXIVFE_TOKEN_BASE_TIMEOUT=
# PIXIVFE_TOKEN_MAX_BACKOFF_TIME=
### Development options
# PIXIVFE_DEV=
# PIXIVFE_RESPONSE_SAVE_LOCATION