feat(services,minecraft-servers): favelasmp website

This commit is contained in:
Guz
2026-05-25 16:26:59 -03:00
parent 66f4a8a8f5
commit cb1d2ccc9f
2 changed files with 8 additions and 11 deletions

8
flake.lock generated
View File

@@ -95,11 +95,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1779563912,
"narHash": "sha256-g3nD9EAIaz/iQUO7ld4/7Cgn9EEa5BWtFGLaRh104nU=",
"lastModified": 1779737395,
"narHash": "sha256-T3zeCIuR3yhCuuShS3gki7kovF430mGnU62h3tdgGhA=",
"ref": "refs/heads/main",
"rev": "8c0d74be89894896f95486330a0e1df54d40d6b5",
"revCount": 13,
"rev": "c8513c3a285c241c4d7ca430478302028266febf",
"revCount": 14,
"type": "git",
"url": "https://code.capytal.cc/sixsides/favelasmp"
},

View File

@@ -212,6 +212,7 @@ in {
}
];
username = "Git Pack Manager";
avatar_url = "https://favelasmp.guz.one/favicon.png";
attachments = [];
};
in
@@ -334,6 +335,7 @@ in {
}
],
"username": "FavelaSMP"
"avatar_url": "https://favelasmp.guz.one/favicon.png"
}' "$(date -u +%FT%TZ)")"
${getExe pkgs.curl} -X POST "$webhook" \
@@ -359,13 +361,8 @@ in {
bluemapServer = cfg.servers."favelasmp".files."config/bluemap/webserver.conf".value;
in {
extraConfig = ''
header Content-Type text/html
respond <<HTML
<html>
<head><title>FavelaSMP</title></head>
<body><h1>Hello, FavelaSMP</h1></body>
</html>
HTML 200
root ${inputs.favelasmp.packages.${pkgs.stdenv.hostPlatform.system}.web}
file_server
handle /git-pack-manager* {
reverse_proxy http://localhost:${toString meshLib.httpPort} {