VEGAS: add Discourse forum
This commit is contained in:
parent
bddf3bfcf8
commit
d25c9bd74b
5 changed files with 56 additions and 0 deletions
40
hosts/VEGAS/services/forum/default.nix
Normal file
40
hosts/VEGAS/services/forum/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ config, pkgs, tools, ... }:
|
||||
{
|
||||
age.secrets = {
|
||||
discourse-adminpass = {
|
||||
file = ../../../../secrets/discourse-adminpass.age;
|
||||
owner = "discourse";
|
||||
group = "discourse";
|
||||
mode = "0400";
|
||||
};
|
||||
discourse-dbpass = {
|
||||
file = ../../../../secrets/discourse-dbpass.age;
|
||||
owner = "discourse";
|
||||
group = "discourse";
|
||||
mode = "0400";
|
||||
};
|
||||
};
|
||||
services.discourse = {
|
||||
enable = true;
|
||||
nginx.enable = true;
|
||||
hostname = "forum.${tools.meta.domain}";
|
||||
|
||||
plugins = with pkgs.discourse.plugins; [
|
||||
discourse-ldap-auth
|
||||
];
|
||||
|
||||
admin = {
|
||||
email = tools.meta.adminEmail;
|
||||
fullName = "Site Administrator";
|
||||
username = "admin";
|
||||
passwordFile = config.age.secrets.discourse-adminpass.path;
|
||||
};
|
||||
|
||||
database = {
|
||||
host = "127.0.0.1";
|
||||
name = "forum";
|
||||
username = "forum";
|
||||
passwordFile = config.age.secrets.discourse-dbpass.path;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -18,6 +18,9 @@
|
|||
./services/bitwarden
|
||||
./services/dns
|
||||
./services/fbi
|
||||
./services/bitwarden
|
||||
# TODO: fix this one
|
||||
./services/forum
|
||||
]
|
||||
# TODO: fix users
|
||||
# ++ (import ../../users "server").groups.admin
|
||||
|
|
BIN
secrets/discourse-adminpass.age
Normal file
BIN
secrets/discourse-adminpass.age
Normal file
Binary file not shown.
11
secrets/discourse-dbpass.age
Normal file
11
secrets/discourse-dbpass.age
Normal file
|
@ -0,0 +1,11 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 NO562A LVOiO6inEu8YgF8XpQJLdzDZucyXAJKKhxjuESzLxkI
|
||||
5mebe46wDnPo/UMLT+BuHaWfp3HqVnupUVIcrmzMNaA
|
||||
-> ssh-ed25519 5/zT0w vLu5e4HVp2e/+TspW2fpJ7wyxCs6RQecSYSmw3wtgWs
|
||||
hcpegcBG49EEpy1QkXas8UUEewMenkdq2GGO7dYZPMI
|
||||
-> ssh-ed25519 d3WGuA UIdaI0MtMEDdYCuEfdIXyOYxUcsonpn+ALgjzdPbIhA
|
||||
17bJ/fOe8tjnrwpugeao0H8IY11yQSPGpLUTgHdfnZM
|
||||
-> W/-grease v|B#s- h -
|
||||
f1XUdGctidk+XumqgfMjZWoHKA
|
||||
--- 7VyP3m2uXCyxIXXchR5z2ubkqLmuX9sUmzD8wcsoofU
|
||||
Q{E…h“_àmD…¾³ð…yî"Ξ¦°#ú¸›0ž7ÈøŒÄ"û†˜
|
|
@ -4,6 +4,8 @@ let
|
|||
systemKeys = x: x.ssh.id.publicKey or null;
|
||||
in with hosts;
|
||||
{
|
||||
"discourse-adminpass.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||
"discourse-dbpass.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||
"hydra-s3.age".publicKeys = max ++ map systemKeys [ styx ];
|
||||
"hydra-db-credentials.age".publicKeys = max ++ map systemKeys [ styx ];
|
||||
"gitea-db-credentials.age".publicKeys = max ++ map systemKeys [ git ];
|
||||
|
|
Loading…
Reference in a new issue