You can use a self-signed SSL certificate to make the Lua file editor secure.
It you want the internal web server to use HTTPS instead of HTTP, you can easily create your own self-signed SSL certificate and add it to the configuration. Of course, when used for securing HTTPS connections, this requires to be accepted manually by the browser’s user. But fortunately this is only necessary once.
Here is a brief description how you can create your own self-signed SSL certificate, and how you add it to the WoL configuration.
This requires, that Java is installed on your machine, and that it is accessible from the command line.
keytool -genkey -keystore server-keystore.jks -alias server_alias \
-dname "CN=127.0.0.1,OU=whateveryoulike" \
-keyalg RSA -sigalg SHA256withRSA -keysize 2048 -validity 365 \
-storetype pkcs12
server-keystore.jks
in the current directory.server-keystore.jks
into your Minecraft server’s directory,
next to the server.properties
file.config/wizards-of-lua/wizards-of-lua.luacfg
.RestApi {
hostname="example.com",
port=60080,
secure=true,
keystore="ssl-keystore.jks",
keystorePassword="123456",
keyPassword="123456",
...
Please replace example.com with the hostname or the numerical IP address of your server. And replace the values for keystorePassword and keyPassword with the value you chose when you used the keytool.
/wol browser login
to authenticate your browser for HTTPS./wol file edit <filename>
or /wol shared-file edit <filename>
to edit your files.