sincerity.network/nixos/book-stack.nix
2022-10-03 08:15:11 +00:00

27 lines
736 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";
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";
# };
};
}