minecraft: got the classic server and maps up and running

This commit is contained in:
silver 2023-04-27 01:47:17 +01:00
parent f39934a437
commit e8254a0d65
2 changed files with 18 additions and 1 deletions

View file

@ -20,7 +20,10 @@
certs = { certs = {
"skynet" = { "skynet" = {
domain = "skynet.ie"; domain = "skynet.ie";
extraDomainNames = ["*.skynet.ie" ]; extraDomainNames = [
"*.skynet.ie"
"*.minecraft.games.skynet.ie"
];
}; };

View file

@ -1,4 +1,9 @@
{ {
imports = [
../acme.nix
../nginx.nix
];
skynet_dns.records = { skynet_dns.records = {
external = []; external = [];
@ -6,6 +11,9 @@
# create a sub-subdomain for each game # create a sub-subdomain for each game
"compsoc_classic.minecraft.games CNAME games" "compsoc_classic.minecraft.games CNAME games"
"compsoc.minecraft.games CNAME games" "compsoc.minecraft.games CNAME games"
"map.compsoc_classic.minecraft.games CNAME games"
#"compsoc.minecraft.games CNAME games"
]; ];
}; };
@ -19,6 +27,12 @@
20001 20001
]; ];
services.nginx.virtualHosts."compsoc_classic.minecraft.games.skynet.ie" = {
forceSSL = true;
useACMEHost = "skynet";
locations."/map/".alias = "/etc/games/minecraft/compsoc/classic/config/plugins/dynmap/web/";
};
# arion is one way to use docker on nixos # arion is one way to use docker on nixos
# see https://gitlab.com/c2842/computer_society/nixos/-/blob/733b867f4782afa795848135a83e97a5cafaf16a/applications/games/minecraft.nix # see https://gitlab.com/c2842/computer_society/nixos/-/blob/733b867f4782afa795848135a83e97a5cafaf16a/applications/games/minecraft.nix
# for an example of a single compose file with multiple services # for an example of a single compose file with multiple services