Add cert to authentik
This commit is contained in:
parent
8ad3a4a041
commit
6f77230c15
5 changed files with 20 additions and 0 deletions
roles
|
@ -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:
|
||||
|
|
12
roles/lego/files/node002/auth.serguzim.me
Executable file
12
roles/lego/files/node002/auth.serguzim.me
Executable 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
|
|
@ -20,4 +20,5 @@
|
|||
loop:
|
||||
- msrg.cc
|
||||
- db.serguzim.me
|
||||
- auth.serguzim.me
|
||||
become: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue