From 3367933378ece4970ad993d50a0afc67d699b3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hrvoje=20Slavi=C4=8Dek?= <992825+slavus@users.noreply.github.com> Date: Fri, 12 Aug 2022 09:34:49 +0200 Subject: [PATCH] Add hints for reverse proxying of grpc server (#1091) * Update 70-proxy.md * Update docs/docs/30-administration/70-proxy.md * fix suggestion Co-authored-by: Anbraten --- docs/docs/30-administration/70-proxy.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/docs/30-administration/70-proxy.md b/docs/docs/30-administration/70-proxy.md index cd6381bfa..b3cfb3425 100644 --- a/docs/docs/30-administration/70-proxy.md +++ b/docs/docs/30-administration/70-proxy.md @@ -1,6 +1,7 @@ # Proxy ## Apache + This guide provides a brief overview for installing Woodpecker server behind the Apache2 webserver. This is an example configuration: ```nohighlight @@ -85,12 +86,21 @@ This guide provides a brief overview for installing Woodpecker server behind the woodpecker.example.com { reverse_proxy woodpecker-server:8000 } + +woodpeckeragent.example.com { + reverse_proxy h2c://woodpecker-server:9000 +} ``` +:::note +Above configuration shows how to create reverse-proxies for web and agent communication. If your agent uses SSL do not forget to enable [WOODPECKER_GRPC_SECURE](/docs/administration/agent-config#woodpecker_grpc_secure). +::: + ## Ngrok + After installing [ngrok](https://ngrok.com/), open a new console and run: -``` +```bash ngrok http 8000 ```