mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
enable mumble with correct certs
This commit is contained in:
parent
0ca54b14aa
commit
36c6099327
1 changed files with 17 additions and 2 deletions
|
@ -3,7 +3,22 @@
|
||||||
services.murmur = {
|
services.murmur = {
|
||||||
enable = true;
|
enable = true;
|
||||||
welcometext = "Welcome to the Mumble-Server!";
|
welcometext = "Welcome to the Mumble-Server!";
|
||||||
#sslKey = "";
|
sslCert = "/var/lib/acme/voice.buehler.rocks/fullchain.pem";
|
||||||
#sslCert = "";
|
sslKey = "/var/lib/acme/voice.buehler.rocks/key.pem";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."voice.buehler.rocks".enableACME = true;
|
||||||
|
security.acme.certs."voice.buehler.rocks" = {
|
||||||
|
group = "voice-buehler-rocks";
|
||||||
|
postRun = ''
|
||||||
|
if ${pkgs.systemd}/bin/systemctl is-active murmur.service; then
|
||||||
|
${pkgs.systemd}/bin/systemctl kill -s SIGUSR1 murmur.service
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups."voice-buehler-rocks".members = [ "murmur" "nginx" ];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ config.services.murmur.port ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ config.services.murmur.port ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue