Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
[DEVOPS-1051] setup a simple teamspeak server
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverca22 committed Sep 14, 2018
1 parent 1847b78 commit 382943b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions deployments/voice-server.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
let
accessKeyId = "cardano-deployer";
region = "eu-central-1";
in {
voice-server = { config, resources, ... }: {
deployment = {
ec2 = {
inherit region accessKeyId;
keyPair = resources.ec2KeyPairs.voice-server;
instanceType = "t3.nano";
};
};
services = {
teamspeak3 = {
enable = true;
};
};
nixpkgs.config.allowUnfree = true;
networking = {
firewall = {
allowedTCPPorts = with config.services.teamspeak3; [ fileTransferPort queryPort ];
allowedUDPPorts = with config.services.teamspeak3; [ defaultVoicePort ];
};
};
};
resources.ec2KeyPairs.voice-server = {
inherit region accessKeyId;
};
}

0 comments on commit 382943b

Please sign in to comment.