README.md aktualisiert
This commit is contained in:
parent
eb13c89baa
commit
afcb7bf7bc
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -5,7 +5,7 @@ short template for certbot dns-01 with auto renew (Alpine 3.19 / LXC Proxmox)
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Add Edge Repos to /etc/apk/repositories
|
Add Edge Repos to /etc/apk/repositories
|
||||||
```
|
```sh
|
||||||
cat <<EOF >> /etc/apk/repositories
|
cat <<EOF >> /etc/apk/repositories
|
||||||
@edge https://dl-cdn.alpinelinux.org/alpine/edge/main
|
@edge https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||||
@edgecommunity https://dl-cdn.alpinelinux.org/alpine/edge/community
|
@edgecommunity https://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||||
|
@ -14,22 +14,22 @@ EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
Update system & install utils
|
Update system & install utils
|
||||||
```
|
```sh
|
||||||
apk update -y && apk upgrade -y && apk add nano
|
apk update -y && apk upgrade -y && apk add nano
|
||||||
```
|
```
|
||||||
|
|
||||||
Make Folder structure
|
Make Folder structure
|
||||||
```
|
```sh
|
||||||
cd && mkdir -p /storage/certs && mkdir -p /storage/cf-tokens && mkdir -p /storage/hooks && chmod 777 -R /storage
|
cd && mkdir -p /storage/certs && mkdir -p /storage/cf-tokens && mkdir -p /storage/hooks && chmod 777 -R /storage
|
||||||
```
|
```
|
||||||
|
|
||||||
Install haproxy and cloudflare-dns
|
Install haproxy and cloudflare-dns
|
||||||
```
|
```sh
|
||||||
apk add haproxy certbot@edgecommunity certbot-dns-cloudflare@edgecommunity
|
apk add haproxy certbot@edgecommunity certbot-dns-cloudflare@edgecommunity
|
||||||
```
|
```
|
||||||
|
|
||||||
Add custom scripts and default haproxy config
|
Add custom scripts and default haproxy config
|
||||||
```
|
```sh
|
||||||
mkdir -p /etc/haproxy && rm /etc/haproxy/haproxy.cfg && mkdir -p /etc/haproxy/ssl
|
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/haproxy.cfg -O /etc/haproxy/haproxy.cfg
|
||||||
wget https://git.hackmi.ch/Phil/haproxy-template/raw/branch/main/genscripts.sh
|
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
|
Add haproxy to startup and certbot autorenew to weekly
|
||||||
```
|
```sh
|
||||||
rc-update add haproxy
|
rc-update add haproxy
|
||||||
|
|
||||||
cat <<EOF >> /etc/periodic/weekly/certbot-renew
|
cat <<EOF >> /etc/periodic/weekly/certbot-renew
|
||||||
|
|
Loading…
Reference in a new issue