forgejo: add asciidoc support
This commit is contained in:
parent
a65cad70ad
commit
3a0e09f330
1 changed files with 9 additions and 0 deletions
|
@ -88,6 +88,13 @@ in
|
||||||
FROM = "forge@${domain}";
|
FROM = "forge@${domain}";
|
||||||
USER = "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 = {
|
secrets = {
|
||||||
mailer = {
|
mailer = {
|
||||||
|
@ -109,6 +116,8 @@ in
|
||||||
${adminCmd} change-password --username ${user} --password "$(tr -d '\n' < ${pwd})" || true
|
${adminCmd} change-password --username ${user} --password "$(tr -d '\n' < ${pwd})" || true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
systemd.services.forgejo.path = [ pkgs.asciidoctor ];
|
||||||
|
|
||||||
systemd.services.forgejo.serviceConfig = {
|
systemd.services.forgejo.serviceConfig = {
|
||||||
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
|
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
|
||||||
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];
|
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue