Give the usaco site an OpenAI key and a private audio bucket for reviews
The site's new recording reviews transcribe the admin's audio with OpenAI (USACO_OPENAI_API_KEY) and, when USACO_S3_* is set, keep the recordings in Garage's private usaco-audio bucket for playback. The public uploads bucket is never used. The endpoint, region and bucket are derived from the key, so a blank key leaves all five S3_* blank: the site refuses to start with only some of them set. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -249,6 +249,19 @@ USACO_WEBHOOK_SECRET=
|
||||
# extraction. Blank means claude-opus-5-5. The key is CLAUDE_API_KEY above;
|
||||
# without it the button is off and the rest of the site works.
|
||||
USACO_CLAUDE_MODEL=
|
||||
# Recording reviews (the admin uploads themselves explaining a solution).
|
||||
# Claude cannot take audio, so this OpenAI key transcribes it (whisper-1,
|
||||
# about $0.006 a minute). Blank turns reviews off.
|
||||
USACO_OPENAI_API_KEY=
|
||||
# Optional: keep the recordings for playback in a PRIVATE Garage bucket,
|
||||
# never `uploads` (that one is served publicly at /uploads/). Its own key,
|
||||
# same shapes as S3_ACCESS_KEY_ID / S3_SECRET_ACCESS_KEY above. With the
|
||||
# key blank the recordings are thrown away once transcribed. One-off setup:
|
||||
# docker compose exec -T garage /garage bucket create usaco-audio
|
||||
# docker compose exec -T garage /garage key import -n usaco-site --yes "$USACO_S3_ACCESS_KEY_ID" "$USACO_S3_SECRET_ACCESS_KEY"
|
||||
# docker compose exec -T garage /garage bucket allow --read --write usaco-audio --key "$USACO_S3_ACCESS_KEY_ID"
|
||||
USACO_S3_ACCESS_KEY_ID=
|
||||
USACO_S3_SECRET_ACCESS_KEY=
|
||||
|
||||
# --- Activity tracker (/tracker/) --------------------------------------------
|
||||
# An image built and published by the ccp repo's CI. Blank runs :latest; set a
|
||||
|
||||
Reference in New Issue
Block a user