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