sincerity.network/nixos/book-stack.nix
Anish Lakhwara fdc3e378d4 enable vault warden registration
create local db for bookstack
2022-10-03 18:30:41 +10:00

28 lines
771 B
Nix

{ pkgs, ... }:
{
age.secrets."bookstack-app-file-key".file = ../secrets/bookstack-app-file-key.age;
age.secrets."bookstack-app-file-key".owner = "bookstack";
services.bookstack = {
enable = true;
hostname = "wiki.sincerity.network";
appKeyFile = "/run/agenix/bookstack-app-file-key";
database.createLocally = true;
nginx = {
serverName = "wiki.sincerity.network";
listenAddresses = [ "0.0.0.0" ];
forceSSL = true;
enableACME = true;
};
# Not sure this is right?
# Probably will need more configuration and testing
# mail = {
# host = "migadu.com";
# user = "infra@sincerity.network";
# port = ???;
# from = "bookstack@sincerity.network";
# driver = "smtp";
# };
};
}