haproxy-template/README.md

31 lines
742 B
Markdown
Raw Normal View History

2023-07-28 22:32:31 +00:00
# haproxy-template
2024-02-19 18:58:23 +00:00
short template for certbot dns-01 with renew option (Alpine 3.19 / LXC Proxmox)
## Installation
Add Edge Repos to /etc/apk/repositories
```
2024-02-19 19:00:14 +00:00
cat <<EOF >> /etc/apk/repositories
2024-02-19 18:58:23 +00:00
@edge https://dl-cdn.alpinelinux.org/alpine/edge/main
@edgecommunity https://dl-cdn.alpinelinux.org/alpine/edge/community
@edgetesting https://dl-cdn.alpinelinux.org/alpine/edge/testing
2024-02-19 19:00:14 +00:00
EOF
2024-02-19 18:58:23 +00:00
```
Update system & install utils
```
apk update -y && apk upgrade -y && apk add nano
```
Make Folder structure
```
cd && mkdir -p /storage/certs && mkdir -p /storage/cf-tokens && mkdir -p /storage/hooks && chmod 777 -R /storage
```
Install haproxy and cloudflare-dns
```
apk add haproxy certbot@edgecommunity certbot-dns-cloudflare@edgecommunity
```