gerd.murmur: removed subdomain

This commit is contained in:
eyjhb 2024-08-10 17:49:20 +02:00
parent 303b66493b
commit 3c808fa3a7
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -2,7 +2,7 @@
{
services.murmur = let
certLocation = config.security.acme.certs."mumble.fricloud.dk".directory;
certLocation = config.security.acme.certs."fricloud.dk".directory;
in {
enable = true;
openFirewall = true;
@ -18,24 +18,8 @@
# set superpassword on start from secrets
systemd.services.murmur.preStart = lib.mkAfter ''${config.services.murmur.package}/bin/mumble-server -ini /run/murmur/murmurd.ini -readsupw < ${config.age.secrets.murmur-superpassword.path}'';
services.nginx.virtualHosts."mumble.fricloud.dk" = {
forceSSL = true;
enableACME = true;
root = pkgs.writeTextDir "index.html" ''
<html>
<head>
<title>Mumble server</title>
</head>
<body>
<p>This server runs a mumble server, enjoy!</p>
</body>
</html>
'';
};
# need to change group to murmur for cert + add nginx to murmur group to do HTTP ACME
security.acme.certs."mumble.fricloud.dk".group = config.users.groups.murmur.name;
users.users.nginx.extraGroups = [ config.users.groups.murmur.name ];
# add murmur user to domain group to access cert
users.groups.fricloud-domain.members = [ config.users.groups.murmur.name ];
age.secrets = {
murmur-env.owner = config.users.users.murmur.name;