Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- .env +23 -0
- requirements.txt +12 -0
.env
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# JWT signing secret (generate: openssl rand -hex 32)
|
| 2 |
+
SECRET_KEY=40bac2562711528fa90b6ba6fb1b2a8be37f81ebc0cc27c6cb07d0d85c167489
|
| 3 |
+
|
| 4 |
+
# Fernet key for encrypting stored API keys
|
| 5 |
+
# Generate: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
| 6 |
+
# If left blank, auto-generated key will be printed in logs on first run
|
| 7 |
+
FERNET_KEY=u8W5K18V7T85WnKiKwB_agfVpkboBZpuEXxCNeTSoJ8=
|
| 8 |
+
|
| 9 |
+
# SQLite (default) or PostgreSQL
|
| 10 |
+
DATABASE_URL=sqlite:///./proxy.db
|
| 11 |
+
|
| 12 |
+
# Token expiry in minutes (default: 7 days)
|
| 13 |
+
ACCESS_TOKEN_EXPIRE_MINUTES=10080
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi==0.111.0
|
| 2 |
+
uvicorn[standard]==0.29.0
|
| 3 |
+
sqlalchemy==2.0.30
|
| 4 |
+
passlib[bcrypt]==1.7.4
|
| 5 |
+
python-jose[cryptography]==3.3.0
|
| 6 |
+
litellm==1.40.0
|
| 7 |
+
cryptography==42.0.7
|
| 8 |
+
python-dotenv==1.0.1
|
| 9 |
+
python-multipart==0.0.9
|
| 10 |
+
pydantic[email]==2.7.1
|
| 11 |
+
httpx==0.27.0
|
| 12 |
+
aiohttp==3.9.5
|