mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +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 = {
|
||||
enable = true;
|
||||
welcometext = "Welcome to the Mumble-Server!";
|
||||
#sslKey = "";
|
||||
#sslCert = "";
|
||||
sslCert = "/var/lib/acme/voice.buehler.rocks/fullchain.pem";
|
||||
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