Skip to content

Commit

Permalink
refactor: update envs
Browse files Browse the repository at this point in the history
  • Loading branch information
589hero committed Dec 20, 2024
1 parent 1eb4857 commit de99e9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BROKER_URI=amqp://<user_name>:<password>@<rabbitmq_container_name>:5672/<rabbitmq_vhost_name>
FIREBASE_DATABASE_URL=<firebase_database_url>
FIREBASE_STORAGE_BUCKET=<firebase_storage_bucket>
FIREBASE_APP_NAME=super-resolution
4 changes: 2 additions & 2 deletions src/configs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class ModelSettings(BaseSettings):
class FirebaseSettings(BaseSettings):
firebase_app_name: str = "super-resolution"
cred_path: str = "/app/key/serviceAccountKey.json"
database_url: str
storage_bucket: str
firebase_database_url: str
firebase_storage_bucket: str


celery_worker_settings = CeleryWorkerSettings()
Expand Down
4 changes: 2 additions & 2 deletions src/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
firebase_admin.initialize_app(
cred,
{
"databaseURL": firebase_settings.database_url,
"storageBucket": firebase_settings.storage_bucket,
"databaseURL": firebase_settings.firebase_database_url,
"storageBucket": firebase_settings.firebase_storage_bucket,
},
)

0 comments on commit de99e9f

Please sign in to comment.