Skip to content

Commit

Permalink
Add API key auth to assets-service (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui authored Oct 25, 2024
1 parent 505f9a5 commit f494f8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/adapters/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

assets_service_http_client = httpx.AsyncClient(
base_url=settings.ASSETS_SERVICE_BASE_URL,
headers={"X-Api-Key": settings.ASSETS_SERVICE_API_KEY},
)


Expand Down
1 change: 1 addition & 0 deletions app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ def read_bool(s: str) -> bool:
AWS_S3_SECRET_ACCESS_KEY = os.environ["AWS_S3_SECRET_ACCESS_KEY"]

ASSETS_SERVICE_BASE_URL = os.environ["ASSETS_SERVICE_BASE_URL"]
ASSETS_SERVICE_API_KEY = os.environ["ASSETS_SERVICE_API_KEY"]

0 comments on commit f494f8c

Please sign in to comment.