diff --git a/.github/workflows/kanidm_book.yml b/.github/workflows/kanidm_book.yml index 0db95a905..39ca2d127 100644 --- a/.github/workflows/kanidm_book.yml +++ b/.github/workflows/kanidm_book.yml @@ -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 diff --git a/book/src/troubleshooting.md b/book/src/troubleshooting.md index a770c9953..bbc94d817 100644 --- a/book/src/troubleshooting.md +++ b/book/src/troubleshooting.md @@ -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 +```