Fix indent again

This commit is contained in:
Pamela Fox 2023-12-01 10:20:05 -08:00 committed by GitHub
parent 4e92266c2d
commit 59349af9c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -76,12 +76,12 @@ And because you are using `StaticFiles`, that CSS file would be served automatic
The url generated by `url_for` is a full absolute URL, including the protocol. That may not work in a reverse proxy situation, like Traefik or GitHub Codespaces.
If you would instead like it to generate relative URLs, you can override the `url_for` template function in your Python code:
```python
templates.env.globals["url_for"] = app.url_path_for
```
```python
templates.env.globals["url_for"] = app.url_path_for
```
Another way to affect the generated URLs is to customize `uvicorn` with arguments like `proxy-headers`, `root-path`, and `forwarded-allow-ips`.
See <a href="https://www.uvicorn.org/settings/#http">uvicorn's docs on settings</a>.
Another way to affect the generated URLs is to customize `uvicorn` with arguments like `proxy-headers`, `root-path`, and `forwarded-allow-ips`.
See <a href="https://www.uvicorn.org/settings/#http">uvicorn's docs on settings</a>.
## More details