Fixed README and docker-compose variables
This commit is contained in:
@ -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
|
||||||
|
11
docker/.env
11
docker/.env
@ -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"
|
|
@ -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
|
Reference in New Issue
Block a user