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:
James Hodgkinson 2023-05-05 21:08:54 +10:00 committed by GitHub
parent af01301acd
commit 6b0d1bacd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -3,6 +3,9 @@ name: GitHub Pages
"on": "on":
push: push:
branches:
- "master"
pull_request:
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -67,3 +70,11 @@ jobs:
ln -s ${{ needs.generate_tags.outputs.latest}}/ stable && \ ln -s ${{ needs.generate_tags.outputs.latest}}/ stable && \
cd .. cd ..
ls -la docs/ 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

View file

@ -67,6 +67,20 @@ related to the failing operation.
Try running commands with `RUST_LOG=debug` to get more information: Try running commands with `RUST_LOG=debug` to get more information:
``` ```shell
RUST_LOG=debug kanidm login --name anonymous 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
```