Spaces:
Sleeping
Sleeping
Remove hardcoded proxy secret from image; use masked HF Space secret
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 8 |
|
| 9 |
COPY app/ app/
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
ENV DATABASE_URL=sqlite:///./revai.db
|
| 13 |
ENV SECRET_KEY=revai-production-hf-secret-key-2026
|
| 14 |
|
|
|
|
| 8 |
|
| 9 |
COPY app/ app/
|
| 10 |
|
| 11 |
+
# RAPIDAPI_PROXY_SECRET is NOT baked into the image — set it as a masked
|
| 12 |
+
# HF Space secret (Settings → Variables and secrets) using the exact value
|
| 13 |
+
# the RapidAPI gateway injects. While unset, proxy-secret validation stays
|
| 14 |
+
# dormant so live clients are never blocked.
|
| 15 |
ENV DATABASE_URL=sqlite:///./revai.db
|
| 16 |
ENV SECRET_KEY=revai-production-hf-secret-key-2026
|
| 17 |
|