Add DNS challenge hooks for Certbot

This commit is contained in:
Miraty 2024-01-30 20:24:22 +01:00
parent 8a72df8461
commit 38c23590da
4 changed files with 15 additions and 2 deletions

View file

@ -9,8 +9,9 @@ This repository also contains configuration files and installation scripts insid
This generator allows to build images for both Arch Linux and Debian Testing, you can replace `<sysid>` by either `sn-arch` or `sn-debian` in the following examples. Note that mkosi may require tools that are not available on your distribution.
First:
- Put the ServNest source code inside `mkosi.extra/srv/servnest/core/`
- Put a SFTPGo binary compiled as bundle in `mkosi.extra/usr/local/bin/sftpgo` (`mkosi.extra/root/sftpgo.sh` is provided for this purpose)
- Put your SSH public key in `mkosi.extra/root/.ssh/authorized_keys`
- Put a SFTPGo binary as `mkosi.extra/usr/local/bin/sftpgo`
You can generate a new image in `/var/lib/machines/<sysid>` by running `mkosi --force --image <sysid> build` from this repository (`--force` erases an already existing image).

View file

@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
knotc zone-begin servnest.example.
knotc zone-set servnest.example. _acme-challenge.ht.servnest.example. 60 IN TXT $CERTBOT_VALIDATION
knotc zone-commit servnest.example.

View file

@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
knotc zone-begin servnest.example.
knotc zone-unset servnest.example. _acme-challenge.ht.servnest.example. 60 IN TXT $CERTBOT_VALIDATION
knotc zone-commit servnest.example.

@ -1 +1 @@
Subproject commit 7330f3a7699b107de2df8547cc42af93f6a93fc3
Subproject commit 0496feb8fb7dd1c76449426ecdb3fc6f9ae8bcbf