discourse: init (wip)

Incomplete installation of Discourse on pendragon.

Missing in particular are emails (both outgoing and incoming).

Signed-off-by: Jeltz <jeltz@federez.net>
This commit is contained in:
jeltz 2024-08-09 05:48:12 +02:00
parent 61ed6e9571
commit 7491e221d3
Signed by: jeltz
GPG key ID: 800882B66C0C3326
4 changed files with 40 additions and 1 deletions

19
profiles/discourse.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }: {
age.secrets.discourse-key-base = {
file = ../secrets/discourse-key-base.age;
owner = "discourse";
group = "discourse";
};
services.postgresql.package = pkgs.postgresql_13;
services.discourse = {
enable = true;
hostname = "forum.federez.net";
secretKeyBaseFile = config.age.secrets.discourse-key-base.path;
# TODO(jeltz): mail
admin.skipCreate = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}