Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dream-server/extensions/services/ape/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def write_audit(entry: dict) -> None:


async def verify_api_key(x_api_key: Optional[str] = Header(None)):
if API_KEY and x_api_key != API_KEY:
if API_KEY and not secrets.compare_digest(x_api_key or "", API_KEY):
raise HTTPException(status_code=401, detail="Invalid API key")
return True

Expand Down
2 changes: 1 addition & 1 deletion dream-server/extensions/templates/compose-gpu-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ services:
restart: unless-stopped

ports:
- "${MY_SERVICE_PORT:-8080}:8080"
- "127.0.0.1:${MY_SERVICE_PORT:-8080}:8080"

volumes:
- ./data/my-service/models:/models
Expand Down
2 changes: 1 addition & 1 deletion dream-server/extensions/templates/compose-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:

ports:
# External port (user-facing) : Internal port (container)
- "${MY_SERVICE_PORT:-1234}:1234"
- "127.0.0.1:${MY_SERVICE_PORT:-1234}:1234"

deploy:
resources:
Expand Down
Loading