Fixed README and docker-compose variables
This commit is contained in:
@ -54,7 +54,6 @@ services:
|
||||
environment:
|
||||
# Minimal environment variables
|
||||
- PRODUCT_NAMES= # Exact GPU name (e.g. "RTX 5080, RTX 5090")
|
||||
- DISCORD_ROLES= # List of Discord roles ID (e.g. "<@&12345>, <@&6789>"), in the same order than PRODUCT_NAMES values. @everyone by default.
|
||||
- DISCORD_WEBHOOK_URL= # Your Discord webhook URL
|
||||
- API_URL_SKU= # API listing the product for your country
|
||||
- API_URL_STOCK= # API providing stock data for your country
|
||||
|
11
docker/.env
11
docker/.env
@ -1,6 +1,5 @@
|
||||
DS_HOOK= # Your Discord webhook URL
|
||||
FREQ= # Refresh frequency in seconds, default is 30
|
||||
API_URL_SKU= # API listing the product, default is https://api.nvidia.partners/edge/product/search?page=1&limit=100&locale=fr-fr&Manufacturer=Nvidia
|
||||
API_URL_STOCK= # API used to check stock without specifying the SKU, default is https://api.store.nvidia.com/partner/v1/feinventory?locale=fr-fr&skus=
|
||||
PRODUCT_URL= # Purchase URL of the GPU
|
||||
PRODUCT_NAME= # The exact name of the GPU you're looking for, e.g., "RTX 5080"
|
||||
PRODUCT_NAMES= # Exact GPU name (e.g. "RTX 5080, RTX 5090")
|
||||
DISCORD_WEBHOOK_URL= # Your Discord webhook URL
|
||||
API_URL_SKU= # API listing the product for your country
|
||||
API_URL_STOCK= # API providing stock data for your country
|
||||
PRODUCT_URL= # GPU purchase URL for your country
|
@ -6,11 +6,11 @@ services:
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DISCORD_WEBHOOK_URL=${DS_HOOK}
|
||||
- REFRESH_TIME=${FREQ}
|
||||
- API_URL_SKU=${API_URL_SKU}
|
||||
- API_URL_STOCK=${API_URL_STOCK}
|
||||
- PRODUCT_URL=${PRODUCT_URL}
|
||||
- PRODUCT_NAME=${PRODUCT_NAME}
|
||||
- PYTHONUNBUFFERED=1 # Allow to display log in real-time
|
||||
# Minimal environment variables
|
||||
- PRODUCT_NAMES=${PRODUCT_NAMES} # Exact GPU name (e.g. "RTX 5080, RTX 5090")
|
||||
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL} # Your Discord webhook URL
|
||||
- API_URL_SKU=${API_URL_SKU} # API listing the product for your country
|
||||
- API_URL_STOCK=${API_URL_STOCK} # API providing stock data for your country
|
||||
- PRODUCT_URL=${PRODUCT_URL} # GPU purchase URL for your country
|
||||
- PYTHONUNBUFFERED=1 # Enables real-time log output
|
||||
command: python nvidia-stock-bot.py # Run the script
|
Reference in New Issue
Block a user