Skip to content

Commit

Permalink
manage sensitive env variables in a secrets directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aliel committed Jul 8, 2024
1 parent efaa810 commit 4a9e3b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file added .secrets/.gitignore
Empty file.
3 changes: 3 additions & 0 deletions src/aleph_nodestatus/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os
from pathlib import Path
from typing import List

from pydantic import BaseSettings
Expand Down Expand Up @@ -84,6 +86,7 @@ class Settings(BaseSettings):

class Config:
env_file = ".env"
secrets_dir = Path(os.path.abspath(".secrets"))


settings = Settings()

0 comments on commit 4a9e3b6

Please sign in to comment.