Unfortunately nginx does not allow POST requests on static files, so to make nginx able to send back the index. This can then be moved into a folder for nginx to host. You should now have a folder called media with a bunch of hashed filenames and an index.mth file. Openssl dgst -binary -sha1 > media/index.mth we created a new server that was made with Minecity and has also been able to maintain a host for our service and also do not forget that server and host owner. Hash=`openssl dgst -sha1 media/index.mthįind media/ -type f -not -name index.mth | while read f do If you want to get a server up and running quickly, you can do it on your local machine, but setting up a server will take some time, but it should be. inside of a game's folder or a folder of mods:įind -L "$1" -type f -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.ogg" -o -name "*.x" -o -name "*.b3d" | while read f do This is a shell script you could run e.g. You have the option to simply run using Docker CLI, but I prefer using docker-compose, as I sometimes have more Minetest servers on the same machine. This section goes over hosting a remote media server statically, using nginx as the HTTP server.įirst of all you need to populate the list of media and create an index.mth file, which contains a list of hashes that exist on the media server. I've run them without issues for about three years even on really cheap VPS servers with less than 1GB of RAM (but for 2-3 players). Last edited by Pentium44 on Sat 8:18 am, edited 4 times in total. Set the remote_media setting to the URL of the media server. NOTICE Not every mod will be supported by every gamepack Like it Don't Let me know, and open to revisions and modifications of the web panel and mods to use within the service I love feedback. Linux however will usually be linked against a cURL system library that is linked against libnghttp2. Minetest Packages Play Configuration In-game Commands Privileges Setting up a server Network Systemd Server files Configuration Install and enable mods Install a mod Enable a mod See also Minetest Minetest is a voxel game engine written from scratch in C++ and licensed under the LGPL (version 2.1 or later). Preferrably the server should support HTTP/2, though unfortunately the official Android and Windows builds do not come with a cURL linked against libnghttp2 currently. If it doesn't exist, it will fall back to traditional transfer. ![]() The client will then check what hashes it wants, but does not currently have cached, and requests for each one if it exists in the hash index. At first, the client will POST request index.mth, which contains the list of (SHA1) hashes that are available on the server. I used to host a Minetest server to play with a few (no more than 5) friends on a computer that had 1GB RAM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |