We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb02571 commit 1e98765Copy full SHA for 1e98765
shared/config.py
@@ -0,0 +1,27 @@
1
+from pydantic import BaseSettings
2
+
3
4
+class Settings(BaseSettings):
5
+ APP_NAME: str = "RideSharingPlatform"
6
+ ENVIRONMENT: str = "development"
7
8
+ # Kafka
9
+ KAFKA_BOOTSTRAP_SERVERS: str = "localhost:9092"
10
+ KAFKA_TOPIC_RIDE_REQUESTED: str = "ride_requested"
11
+ KAFKA_TOPIC_DRIVER_ASSIGNED: str = "driver_assigned"
12
13
+ # Database
14
+ DATABASE_URL: str = "postgresql://postgres:postgres@localhost:5432/rides"
15
16
+ # Redis
17
+ REDIS_HOST: str = "localhost"
18
+ REDIS_PORT: int = 6379
19
20
+ # Observability
21
+ ENABLE_METRICS: bool = True
22
23
+ class Config:
24
+ env_file = ".env"
25
26
27
+settings = Settings()
0 commit comments