sincerity.network/nixos/book-stack.nix

27 lines
736 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
2022-10-03 01:15:11 -07:00
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;
2022-10-02 21:45:56 -07:00
hostname = "wiki.sincerity.network";
2022-10-03 01:15:11 -07:00
appKeyFile = "/run/agenix/bookstack-app-file-key";
nginx = {
2022-10-03 01:15:11 -07:00
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";
2022-10-02 21:45:56 -07:00
# user = "infra@sincerity.network";
# port = ???;
2022-10-02 21:45:56 -07:00
# from = "bookstack@sincerity.network";
# driver = "smtp";
# };
};
}