refactor(services/server): changing the architecture for teamspeak

This commit is contained in:
Raphael 2025-10-09 00:26:59 +02:00 committed by Raphaël
parent 5c5307014e
commit e891d4cf6d

View file

@ -0,0 +1,28 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.service.server.teamspeak;
in
{
config = lib.mkIf cfg {
services = {
teamspeak3 = {
enable = true;
};
nginx.virtualHosts."ts.enium.eu" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:9987";
proxyWebsockets = true;
};
};
};
};
}