Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
51 lines (51 loc) · 1.83 KB
/
Copy pathrender.yaml
File metadata and controls
51 lines (51 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Render Blueprint for the Purchasing price check (pricecheck/listener.py).
# Render → New → Blueprint → this repo. Notion webhooks then POST to
# https://per-price-listener.onrender.com/notion/webhook (see the README's Setup).
# Starter plan: a free web service sleeps after 15 minutes without requests, which pauses
# the worker (queued rows wait in the Job Log until it wakes).
services:
- type: web
name: per-price-listener
runtime: python
plan: starter
branch: main
autoDeploy: true
buildCommand: pip install -r requirements.txt
startCommand: python -m pricecheck
healthCheckPath: /healthz
envVars:
- key: PYTHON_VERSION
value: '3.12.7'
# Copy these two from PERBot's Render service (Environment tab).
- key: NOTION_TOKEN
sync: false
- key: SLACK_BOT_TOKEN
sync: false
# Leave empty on the first deploy; set it to the token the listener logs when you
# create the Notion webhook subscription.
- key: NOTION_WEBHOOK_SECRET
sync: false
# Web search (DuckDuckGo blocks Render's IPs) and the LLM that reads product pages.
- key: SERPER_API_KEY
sync: false
- key: GEMINI_API_KEY
sync: false
# Optional: exact distributor prices; Groq as a second LLM.
- key: MOUSER_API_KEY
sync: false
- key: DIGIKEY_CLIENT_ID
sync: false
- key: DIGIKEY_CLIENT_SECRET
sync: false
- key: GROQ_API_KEY
sync: false
# Optional: where alerts go when the Point of contact has no Slack match.
- key: PRICE_CHECK_CHANNEL
sync: false
# Alert thresholds and pacing (README → Settings).
- key: PRICE_CHECK_THRESHOLD_PCT
value: '10'
- key: PRICE_CHECK_MIN_DELTA_USD
value: '0'
- key: PRICE_LISTENER_MAX_PER_HOUR
value: '20'