Fixed README and docker-compose variables

This commit is contained in:
2025-07-10 07:30:21 +00:00
parent a95d1d41d5
commit fe3e8f9609
3 changed files with 13 additions and 15 deletions

View File

@ -54,7 +54,6 @@ services:
environment: environment:
# Minimal environment variables # Minimal environment variables
- PRODUCT_NAMES= # Exact GPU name (e.g. "RTX 5080, RTX 5090") - 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 - DISCORD_WEBHOOK_URL= # Your Discord webhook URL
- API_URL_SKU= # API listing the product for your country - API_URL_SKU= # API listing the product for your country
- API_URL_STOCK= # API providing stock data for your country - API_URL_STOCK= # API providing stock data for your country

View File

@ -1,6 +1,5 @@
DS_HOOK= # Your Discord webhook URL PRODUCT_NAMES= # Exact GPU name (e.g. "RTX 5080, RTX 5090")
FREQ= # Refresh frequency in seconds, default is 30 DISCORD_WEBHOOK_URL= # Your Discord webhook URL
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_SKU= # API listing the product for your country
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= API_URL_STOCK= # API providing stock data for your country
PRODUCT_URL= # Purchase URL of the GPU PRODUCT_URL= # GPU purchase URL for your country
PRODUCT_NAME= # The exact name of the GPU you're looking for, e.g., "RTX 5080"

View File

@ -6,11 +6,11 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- DISCORD_WEBHOOK_URL=${DS_HOOK} # Minimal environment variables
- REFRESH_TIME=${FREQ} - PRODUCT_NAMES=${PRODUCT_NAMES} # Exact GPU name (e.g. "RTX 5080, RTX 5090")
- API_URL_SKU=${API_URL_SKU} - DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL} # Your Discord webhook URL
- API_URL_STOCK=${API_URL_STOCK} - API_URL_SKU=${API_URL_SKU} # API listing the product for your country
- PRODUCT_URL=${PRODUCT_URL} - API_URL_STOCK=${API_URL_STOCK} # API providing stock data for your country
- PRODUCT_NAME=${PRODUCT_NAME} - PRODUCT_URL=${PRODUCT_URL} # GPU purchase URL for your country
- PYTHONUNBUFFERED=1 # Allow to display log in real-time - PYTHONUNBUFFERED=1 # Enables real-time log output
command: python nvidia-stock-bot.py # Run the script command: python nvidia-stock-bot.py # Run the script