README.md aktualisiert

This commit is contained in:
Phil 2024-02-19 20:42:32 +01:00
parent eb13c89baa
commit afcb7bf7bc

View file

@ -5,7 +5,7 @@ short template for certbot dns-01 with auto renew (Alpine 3.19 / LXC Proxmox)
## Installation
Add Edge Repos to /etc/apk/repositories
```
```sh
cat <<EOF >> /etc/apk/repositories
@edge https://dl-cdn.alpinelinux.org/alpine/edge/main
@edgecommunity https://dl-cdn.alpinelinux.org/alpine/edge/community
@ -14,22 +14,22 @@ EOF
```
Update system & install utils
```
```sh
apk update -y && apk upgrade -y && apk add nano
```
Make Folder structure
```
```sh
cd && mkdir -p /storage/certs && mkdir -p /storage/cf-tokens && mkdir -p /storage/hooks && chmod 777 -R /storage
```
Install haproxy and cloudflare-dns
```
```sh
apk add haproxy certbot@edgecommunity certbot-dns-cloudflare@edgecommunity
```
Add custom scripts and default haproxy config
```
```sh
mkdir -p /etc/haproxy && rm /etc/haproxy/haproxy.cfg && mkdir -p /etc/haproxy/ssl
wget https://git.hackmi.ch/Phil/haproxy-template/raw/branch/main/haproxy.cfg -O /etc/haproxy/haproxy.cfg
wget https://git.hackmi.ch/Phil/haproxy-template/raw/branch/main/genscripts.sh
@ -37,7 +37,7 @@ chmod 777 -R /etc/haproxy && chmod 7777 -R genscripts.sh
```
Add haproxy to startup and certbot autorenew to weekly
```
```sh
rc-update add haproxy
cat <<EOF >> /etc/periodic/weekly/certbot-renew