Configuration¶
All settings come from environment variables, read once by api/config.py (from .env in
development). In the code, a setting is always config.NAME, where NAME is the variable.
An empty setting disables what needs it; the API still starts.
.env.example lists every variable. A test fails if a setting is missing from it or from this page.
Access tokens¶
Tokens that callers send to the API (Authorization: Bearer <token>). See
Architecture › Access.
Variable |
Used by |
|---|---|
|
administrators: accepted by every route |
|
RewakeApp, RewakeInfo and the Chrome extension, from one of |
|
Airtable automations, for |
|
HelloPro, for its product feed |
|
Machinio, for its product feed |
|
the UltiMate 3000 price sheet’s Apps Script (webhook) |
APP_ORIGINS (in config.py, not an environment variable) lists the sites allowed with
APP_TOKEN: app.rewake.fr, sav.rewake.fr, info.rewake.fr.
Storage and logs¶
Variable |
Default |
Content |
|---|---|---|
|
|
persistent data (PDF counters, photos, invoices…); |
|
|
|
|
|
|
|
|
|
|
|
the discount grid, saved from RewakeApp |
|
|
AI settings, usage and feedback |
|
|
pictures of UltiMate 3000 offers |
Worker¶
Variable |
Default |
|
|---|---|---|
|
|
job queue, script history, caches |
|
|
the label OCR service |
Airtable¶
Variable |
|
|---|---|
|
the main base ( |
|
personal access token, scopes |
AIRTABLE_CONFIGURED is true when both are set.
Shopify¶
Variable |
Default |
|
|---|---|---|
|
|
|
|
|
|
|
the Dev Dashboard app; the API gets and renews its own access token. Scopes: |
|
|
the location whose stock the API sets (it differs between stores: |
|
|
|
the product metafield holding the documentation PDF |
|
|
|
|
|
which Airtable attachment that PDF came from |
AIRTABLE_SHOPIFY_CONFIGURED is true when Airtable and the Shopify domain and app are set.
Scheduled scripts¶
Times are Europe/Paris.
Variable |
Default |
|
|---|---|---|
|
|
Airtable ↔ Shopify comparison |
|
|
daily catalog statistics |
Google¶
Variable |
Default |
|
|---|---|---|
|
path to the service account’s JSON key (Gmail drafts and alerts, Google Sheets) |
|
|
|
a Workspace mailbox the service account may send as |
|
none |
comma-separated; empty means no alert e-mail is sent |
AI¶
Variable |
|
|---|---|
|
Claude models |
|
other models, through OpenRouter |
A provider without its key is skipped; with none, AI features answer “not configured”.
Public pages¶
Variable |
Default |
|---|---|
|
|
UltiMate 3000 offers¶
Variable |
Default |
|
|---|---|---|
|
the Google Sheet with the price grid (shared with the service account) |
|
|
|
the client space |
|
|
where the offer page and its picture are served |
|
n8n webhooks sending the e-mails; empty means only logged |
|
|
n8n Header Auth credential ( |
|
|
found on the |
the browser that takes the offer picture |
Auction tracker¶
The worker copies the auction tracker’s followed lots into their own Airtable base every minute.
Variable |
|
|---|---|
|
the auction-price-tracker API |
|
the auctions base ( |
AUCTIONS_SYNC_CONFIGURED is true when the URL and the base are set.
Payroll reminder¶
Every morning the worker asks RewakeApp to send the monthly payroll reminder (the app decides the day).
Variable |
Default |
|
|---|---|---|
|
RewakeApp’s address |
|
|
the same value as in RewakeApp |
PAYROLL_REMINDER_CONFIGURED is true when both are set.
Deployment¶
Variable |
Default |
|
|---|---|---|
|
|
the image tag |
|
|
where the documentation site listens on the server (Traefik routes to it) |