From 6b85b07c0d9de9bf2da8c3a61e0d56e7769671c2 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 19 Nov 2020 18:50:16 -0500 Subject: [PATCH] add example Caddyfile for HTTPS --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 0b1a95d..ddb04d0 100644 --- a/README.md +++ b/README.md @@ -278,6 +278,21 @@ URL: https://YOUR_DOMAIN/api/webhooks/bitbucket?access_token=YOUR_SECRET Triggers: Repository push ``` +### Securing the Webook with HTTPS + +I recommend using [caddy](https://webinstall.dev/caddy) to HTTPS: + +```caddyfile +gitdeploy.example.com { + log { + output stdout + format console + } + encode gzip zstd + reverse_proxy /* localhost:4483 +} +``` + ## How to Generate a Base64 Secret **in your browser**: