add rst support to gitea (maybe)

This commit is contained in:
Anish Lakhwara 2022-11-14 22:16:08 +10:00
parent a5bea37455
commit fe13abb5a1

View file

@ -7,6 +7,13 @@
domain = "git.sealight.xyz";
rootUrl = "https://git.sealight.xyz";
httpPort = 3001;
extraConfig = ''
[markup.restructuredtext]
ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = rst2html.py
IS_INPUT_FILE = false
'';
database = {
type = "postgres";
# passwordFile = "/run/secrets/gitea-dbpass"; # TODO supplied by agenix
@ -22,6 +29,7 @@
};
};
environment.systemPackages = [ pkgs.docutils ];
services.postgresql = {
enable = true; # Ensure postgresql is enabled