murmur + hedgedoc

This commit is contained in:
tristan 2025-05-25 15:39:04 -04:00
parent 55eb4f5ddc
commit 9da5443958
6 changed files with 41 additions and 5 deletions

View file

@ -11,6 +11,7 @@
./imports/caddy.nix ./imports/caddy.nix
./imports/hedgedoc.nix ./imports/hedgedoc.nix
./imports/postgres.nix ./imports/postgres.nix
./imports/murmur.nix
./imports/navidrome.nix ./imports/navidrome.nix
./imports/vaultwarden.nix ./imports/vaultwarden.nix
./imports/wireguard.nix ./imports/wireguard.nix

View file

@ -16,5 +16,9 @@
reverse_proxy localhost:8000 reverse_proxy localhost:8000
''; '';
virtualHosts."http://mumble.mymarseille.duckdns.org".extraConfig = ''
reverse_proxy localhost:64738
'';
}; };
} }

View file

@ -3,9 +3,23 @@
services.hedgedoc = { services.hedgedoc = {
enable = true; enable = true;
settings = { settings = {
domain = "hedgedoc.mymarseille.duckdns.org"; domain = "notes.mymarseille.duckdns.org";
port = 8001; port = 8001;
dbURL = "postgresql://localhost:5432/hedgedoc";
allowAnonymous = false;
allowAnonymousEdits = true;
sessionSecret = "IRpdLVn5z45C7IVhcYkqCd4yrtd21BlasMMEvvLkiF6xBaL1BTUQzqeDg5rA2q9X";
}; };
}; };
systemd.services.hedgedoc = {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
};
} }

11
imports/murmur.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
services.murmur= {
enable = true;
password = "Mine";
port = 64738;
welcometext = "WELCOME TO MINECRATF";
};
}

View file

@ -3,10 +3,12 @@
services.postgresql = { services.postgresql = {
enable = true; enable = true;
ensureDatabases = [ "vaultwarden" ]; ensureDatabases = [ "vaultwarden" "hedgedoc" ];
authentication = pkgs.lib.mkOverride 10 '' authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method #type database DBuser IP Range auth-method
local all all trust local all all trust
host all all ::1/128 trust
host all all 127.0.0.1/32 trust
''; '';
# When removing users or removing permissions from users here, must also remove them manually # When removing users or removing permissions from users here, must also remove them manually
@ -15,6 +17,10 @@
name = "vaultwarden"; name = "vaultwarden";
ensureDBOwnership = true; ensureDBOwnership = true;
} }
{
name = "hedgedoc";
ensureDBOwnership = true;
}
]; ];

View file

@ -12,7 +12,7 @@
ADMIN_TOKEN = "$argon2id$v=19$m=65540,t=3,p=4$djJtbTZsUlhBY0lxWldqSFV2NEUwNloxRlF0Uk5VVmFOalFmT0hQaHBoMD0$Ekj+ymeGJXyx84GCE3wN123f/Khdcw1GGPMv+s1tqmU"; ADMIN_TOKEN = "$argon2id$v=19$m=65540,t=3,p=4$djJtbTZsUlhBY0lxWldqSFV2NEUwNloxRlF0Uk5VVmFOalFmT0hQaHBoMD0$Ekj+ymeGJXyx84GCE3wN123f/Khdcw1GGPMv+s1tqmU";
DATABASE_URL="postgresql://:5432/vaultwarden"; DATABASE_URL="postgresql://localhost:5432/vaultwarden";
SMTP_FROM = "vincentwaltz8@gmail.com"; SMTP_FROM = "vincentwaltz8@gmail.com";
SMTP_FROM_NAME = "VaultWarden"; SMTP_FROM_NAME = "VaultWarden";