An API bringing minecraft RCON to HTTP level for convenience
185
This API is intended to bridge the gap between languages and RCON libraries, best used in a docker compose with your product of choice
CONFIG_FILE_PATH env token = "wawa"
use_encryption = true
use_rotation = true
use_https = true
expose_tests_endpoint = true
[server_config]
adress = "127.0.0.1"
port = 102345
password = "wawacat"
token - a secret between API and your app, which is required to submit any request. Can be any string value you want (use a password generator)use_encryption - tells the app whether the token is encrypted with the minecraft server password. Because the API works over http this is highly recommended to avoid the risks of token being exposed over plain http. Expects an encrypted value hexidecimal string as token if enabled. You can use /testing/ endpoints to test various encryption logicuse_rotation - tells the app weather the token IV should be rotated. You will need custom encryption logic to keep encrypting the token with the IV supplied in the responce. The same IV will be used for decryption.use_https - enables the app to use HTTPS using Kestrel configuration supplied from docker compose. If this option is checked the app will only listen on HTTPS.expose_tests_endpoint - If unchecked disables /testing endpoint and causes all the requests to that endpoint return 501 withour further processingserver_config - a place for your rcon credentials. The password from here is used for token decryption.Swagger is active at /swagger/index.html, check return types there.
Token is passed as a token header
/main/command/main/connection/init/main/connection/heathcheck/main/connection/close/testing/encrypt/testing/decrypt/testing/rotation/decrypt/testing/rotation/IV/testing/rotation/resetThis image is a part of a bigger project and it will not run correctly without accompanying docker-compose.yml file. All the needed resources can be found at the project gitlab
Content type
Image
Digest
sha256:2e6f852f9…
Size
88 MB
Last updated
about 2 years ago
docker pull stefanidze/minecraft-api