66 lines
2.3 KiB
Plaintext
66 lines
2.3 KiB
Plaintext
# Copy this file to .env and adjust values for your Windows Server.
|
|
|
|
# Bambuddy API base URL. You can use either root URL or /api/v1 URL.
|
|
BAMBUDDY_BASE_URL=http://host.docker.internal:8000/api/v1
|
|
BAMBUDDY_API_KEY=replace-with-bambuddy-api-key
|
|
|
|
# InvenTree URL. Use root URL or /api URL; the service normalizes it.
|
|
INVENTREE_BASE_URL=http://host.docker.internal:1337
|
|
# Optional public/browser URL for InvenTree. Defaults to INVENTREE_BASE_URL.
|
|
INVENTREE_WEB_URL=
|
|
INVENTREE_TOKEN=replace-with-inventree-token
|
|
|
|
# Existing InvenTree IDs where printed parts should be created/stored.
|
|
INVENTREE_PART_CATEGORY_ID=1
|
|
INVENTREE_STOCK_LOCATION_ID=1
|
|
|
|
# Optional tokens for this sync service.
|
|
# If SERVICE_API_TOKEN is set, manual sync endpoints require X-Service-Token.
|
|
SERVICE_API_TOKEN=change-me
|
|
# If WEBHOOK_SHARED_SECRET is set, Bambuddy webhook requests must send X-Sync-Secret.
|
|
WEBHOOK_SHARED_SECRET=
|
|
|
|
# Sync behavior.
|
|
SYNC_SUCCESS_ONLY=true
|
|
SYNC_PART_IMAGES=true
|
|
OVERWRITE_PART_IMAGES=false
|
|
SYNC_ARCHIVE_EXTERNAL_LINK=true
|
|
OVERWRITE_ARCHIVE_EXTERNAL_LINK=false
|
|
DEFAULT_STOCK_QUANTITY=1
|
|
INVENTREE_STOCK_STATUS=10
|
|
PART_IPN_PREFIX=BMB
|
|
PART_KEY_FIELDS=content_hash,filename,print_name,name
|
|
BACKFILL_PAGE_SIZE=50
|
|
POLL_INTERVAL_SECONDS=300
|
|
SYNC_ON_STARTUP=false
|
|
HTTP_TIMEOUT_SECONDS=30
|
|
|
|
# Filament tracking. Keep dry-run enabled until /filament/status and
|
|
# /sync/filament?dry_run=true show the expected actions.
|
|
FILAMENT_TRACKING_ENABLED=false
|
|
FILAMENT_DRY_RUN=true
|
|
FILAMENT_PART_CATEGORY_ID=19
|
|
FILAMENT_STORAGE_LOCATION_ID=85
|
|
FILAMENT_LOADED_LOCATION_ID=72
|
|
# Map Bambuddy printer name prefixes to InvenTree child stock locations.
|
|
FILAMENT_PRINTER_LOCATION_MAP=B1:93,B2:94,B3:95,B4:96
|
|
# Bambuddy spool field that stores the InvenTree StockItem Batch Code.
|
|
FILAMENT_BATCH_SOURCE=tag_uid
|
|
FILAMENT_SYNC_SPOOLS=true
|
|
FILAMENT_SYNC_ASSIGNMENTS=true
|
|
FILAMENT_SYNC_LOCATIONS=true
|
|
FILAMENT_SYNC_USAGE=true
|
|
FILAMENT_RETURN_UNASSIGNED_TO_STORAGE=false
|
|
# Optional. If empty, printer IDs are auto-detected from Bambuddy printer names.
|
|
FILAMENT_PRINTER_ID_MAP=
|
|
FILAMENT_ASSIGNMENT_DEFAULT_AMS_ID=0
|
|
FILAMENT_ASSIGNMENT_START_TRAY_ID=0
|
|
FILAMENT_USAGE_LIMIT=200
|
|
FILAMENT_USAGE_SUCCESS_STATUSES=success,completed,complete,done
|
|
FILAMENT_DEFAULT_MATERIAL=PLA
|
|
FILAMENT_DEFAULT_LABEL_WEIGHT=1000
|
|
FILAMENT_DEFAULT_CORE_WEIGHT=250
|
|
|
|
# Persistent SQLite database inside the container.
|
|
DATA_DIR=/data
|