Keep server details out of the repo; deploy target comes from HOST or .deploy.env
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dc2b12a3c6
commit
21202c2ca3
6 changed files with 17 additions and 13 deletions
|
|
@ -90,8 +90,8 @@ async def shutdown():
|
|||
|
||||
|
||||
def client_ip(request: Request) -> str:
|
||||
# uvicorn runs with --proxy-headers --forwarded-allow-ips 127.0.0.1, so behind
|
||||
# a reverse proxy that connects over loopback this is already the visitor's address.
|
||||
# uvicorn runs with --proxy-headers --forwarded-allow-ips 127.0.0.1, so behind a
|
||||
# reverse proxy that connects over loopback this is already the visitor's address.
|
||||
return request.client.host if request.client else ""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue