2022-09-28 05:01:07 -07:00
|
|
|
{ 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";
|
2022-09-28 05:01:07 -07:00
|
|
|
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";
|
2022-10-03 01:30:41 -07:00
|
|
|
database.createLocally = true;
|
2022-09-28 05:01:07 -07:00
|
|
|
nginx = {
|
2022-10-03 01:15:11 -07:00
|
|
|
serverName = "wiki.sincerity.network";
|
2022-09-28 05:01:07 -07:00
|
|
|
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";
|
2022-09-28 05:01:07 -07:00
|
|
|
# port = ???;
|
2022-10-02 21:45:56 -07:00
|
|
|
# from = "bookstack@sincerity.network";
|
2022-09-28 05:01:07 -07:00
|
|
|
# driver = "smtp";
|
|
|
|
# };
|
|
|
|
};
|
|
|
|
}
|