add example Caddyfile for HTTPS

This commit is contained in:
AJ ONeal 2020-11-19 18:50:16 -05:00 committed by GitHub
parent 64cc7492ad
commit 6b85b07c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -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**: