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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ log/

# WSGI
pids/*.pid


.DS_Store
3 changes: 3 additions & 0 deletions futuramaapi/core/_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ def scheme(self) -> str:

@computed_field
def trusted_host(self) -> str:
if not self.backend_url.host:
raise ValueError("Invalid URL: host is missing")

return self.backend_url.host

database_url: PostgresDsn
Expand Down
Loading