Spaces:
Sleeping
Sleeping
Commit ·
95f0d60
1
Parent(s): 51ea90a
Add .env file for database and Redis configuration; update .gitignore to include environment files
Browse files- .env +13 -0
- .gitignore +2 -5
.env
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Database configuration
|
| 3 |
+
DB_NAME=book-my-service
|
| 4 |
+
|
| 5 |
+
# Full database URI for async SQLAlchemy/Postgres
|
| 6 |
+
DATABASE_URI=postgresql+asyncpg://trans_owner:BookMyService7@ep-sweet-surf-a1qeduoy.ap-southeast-1.aws.neon.tech/logbert_rca?options=-csearch_path%3Dtrans
|
| 7 |
+
|
| 8 |
+
# Redis configuration (for queueing and caching)
|
| 9 |
+
REDIS_HOST=redis-19932.c263.us-east-1-2.ec2.redns.redis-cloud.com # Redis Cloud endpoint
|
| 10 |
+
REDIS_PORT=19932 # Redis Cloud port
|
| 11 |
+
REDIS_USERNAME=default # Redis Cloud username
|
| 12 |
+
REDIS_PASSWORD=SrPY3JUt6TXi33BPdDRDiW9fIplx2BJe # Redis Cloud password
|
| 13 |
+
REDIS_QUEUE=logbert_uploads # Queue name for log uploads
|
.gitignore
CHANGED
|
@@ -8,7 +8,7 @@ __pycache__/
|
|
| 8 |
|
| 9 |
# Distribution / packaging
|
| 10 |
.Python
|
| 11 |
-
|
| 12 |
venv/
|
| 13 |
build/
|
| 14 |
develop-eggs/
|
|
@@ -58,10 +58,7 @@ coverage.xml
|
|
| 58 |
|
| 59 |
# VS Code
|
| 60 |
.vscode/
|
| 61 |
-
|
| 62 |
-
# Environment variables
|
| 63 |
-
.env
|
| 64 |
-
.env.*
|
| 65 |
|
| 66 |
# Data, logs, models
|
| 67 |
*.log
|
|
|
|
| 8 |
|
| 9 |
# Distribution / packaging
|
| 10 |
.Python
|
| 11 |
+
|
| 12 |
venv/
|
| 13 |
build/
|
| 14 |
develop-eggs/
|
|
|
|
| 58 |
|
| 59 |
# VS Code
|
| 60 |
.vscode/
|
| 61 |
+
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
# Data, logs, models
|
| 64 |
*.log
|