mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Document that you need to tell Nginx or other proxies to use HTTP 1.1… (#1592)
* Document that you need to tell Nginx or other proxies to use HTTP 1.1 or later - Fixes #1591 * fixing workflows
This commit is contained in:
parent
af01301acd
commit
6b0d1bacd8
11
.github/workflows/kanidm_book.yml
vendored
11
.github/workflows/kanidm_book.yml
vendored
|
@ -3,6 +3,9 @@ name: GitHub Pages
|
|||
|
||||
"on":
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
@ -67,3 +70,11 @@ jobs:
|
|||
ln -s ${{ needs.generate_tags.outputs.latest}}/ stable && \
|
||||
cd ..
|
||||
ls -la docs/
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs
|
||||
destination_dir: ./docs
|
||||
|
|
|
@ -67,6 +67,20 @@ related to the failing operation.
|
|||
|
||||
Try running commands with `RUST_LOG=debug` to get more information:
|
||||
|
||||
```
|
||||
```shell
|
||||
RUST_LOG=debug kanidm login --name anonymous
|
||||
```
|
||||
|
||||
## Reverse Proxies not sending HTTP/1.1 requests
|
||||
|
||||
NGINX (and probably other proxies) send HTTP/1.0 requests to the upstream server by default. This'll lead to errors like this in your proxy logs:
|
||||
|
||||
```text
|
||||
*17 upstream prematurely closed connection while reading response header from upstream, client: 172.19.0.1, server: example.com, request: "GET / HTTP/1.1", upstream: "https://172.19.0.3:8443/", host: "example.com:8443"
|
||||
```
|
||||
|
||||
The fix for NGINX is to set the [proxy_http_version](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version) to `1.1`. This can go in the same block as the `proxy_pass` option.
|
||||
|
||||
```text
|
||||
proxy_http_version 1.1
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue