forgejo: add asciidoc support

This commit is contained in:
jeltz 2025-08-02 18:48:46 +02:00
parent a65cad70ad
commit 3a0e09f330
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -88,6 +88,13 @@ in
FROM = "forge@${domain}";
USER = "forge@${domain}";
};
"markup.asciidoctor" = {
ENABLED = true;
NEED_POSTPROCESS = true;
FILE_EXTENSIONS = ".adoc,.asciidoc";
RENDER_COMMAND = "asciidoctor --embedded --safe-mode=secure --out-file=- -";
IS_INPUT_FILE = false;
};
};
secrets = {
mailer = {
@ -109,6 +116,8 @@ in
${adminCmd} change-password --username ${user} --password "$(tr -d '\n' < ${pwd})" || true
'';
systemd.services.forgejo.path = [ pkgs.asciidoctor ];
systemd.services.forgejo.serviceConfig = {
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];