Add cert to authentik

This commit is contained in:
Tobias Reisinger 2024-09-28 21:24:11 +02:00
parent 8ad3a4a041
commit 6f77230c15
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 20 additions and 0 deletions
roles
authentik/vars
lego
files/node002
tasks

View file

@ -47,6 +47,7 @@ authentik_compose:
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs:/certs
env_file:
- service.env
depends_on:

View file

@ -0,0 +1,12 @@
#!/usr/bin/env sh
domain="auth.serguzim.me"
_install() {
install --owner=root --group=root --mode=600 \
"$CERTIFICATES_PATH/$domain.$1" \
"/opt/services/authentik/certs/$domain.$2"
}
_install crt pem
_install key key

View file

@ -20,4 +20,5 @@
loop:
- msrg.cc
- db.serguzim.me
- auth.serguzim.me
become: true