add webserver + update minecraft

This commit is contained in:
♥ Minnie ♥ 2023-11-06 09:35:06 +00:00
parent 14c7578229
commit 0da06f46a8

View file

@ -90,13 +90,14 @@
53 # adguardhome (DNS) 53 # adguardhome (DNS)
80 # traefik (HTTP) 80 # traefik (HTTP)
443 # traefik (HTTPS) 443 # traefik (HTTPS)
5624 # sajenim.dev (HTTPD)
32372 # qbittorrent 32372 # qbittorrent
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
53 # adguardhome (DNS) 53 # adguardhome (DNS)
80 # traefik (HTTP) 80 # traefik (HTTP)
443 # traefik (HTTPS) 443 # traefik (HTTPS)
5624 # sajenim.dev (HTTPD)
32372 # qbittorrent 32372 # qbittorrent
]; ];
}; };
@ -143,6 +144,20 @@
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
# Web server
httpd = {
enable = true;
adminAddr = "its.jassy@pm.me";
virtualHosts."sajenim.dev" = {
documentRoot = "/var/www/sajenim.dev";
listen = [{
ip = "192.168.1.102";
port = 5624;
ssl = false;
}];
};
};
# Privacy protection center # Privacy protection center
adguardhome = { adguardhome = {
enable = true; enable = true;
@ -194,15 +209,16 @@
# Sandbox game developed by Mojang Studios # Sandbox game developed by Mojang Studios
minecraft-server = { minecraft-server = {
enable = true; enable = true;
package = pkgs.unstable.minecraft-server;
openFirewall = true; openFirewall = true;
dataDir = "/var/lib/minecraft"; dataDir = "/var/lib/minecraft";
declarative = true; declarative = true;
serverProperties = { serverProperties = {
gamemode = "survival"; gamemode = "survival";
level-name = "kanto"; level-name = "kanto.dev";
difficulty = "easy"; difficulty = "easy";
server-port = 43000; server-port = 25565;
motd = "A Caterpie May Change Into A Butterfree, But The Heart That Beats Inside Remains The Same."; motd = "Welcome to our little private place!";
}; };
eula = true; eula = true;
}; };
@ -216,7 +232,7 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "media" ]; extraGroups = [ "networkmanager" "wheel" "media" ];
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [
../../home-manager/erika/id_ed25519_sk.pub ../../home-manager/sajenim/id_ed25519_sk.pub
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };