4.4.0
Added
-
Mojang textures queue now can be completely disabled via
MOJANG_TEXTURES_ENABLEDparam. -
Remote mode for Mojang's textures queue with a new configuration params:
MOJANG_TEXTURES_UUIDS_PROVIDER_DRIVERand
MOJANG_TEXTURES_UUIDS_PROVIDER_URL.For example, to send requests directly to Mojang's APIs,
set the next configuration:MOJANG_TEXTURES_UUIDS_PROVIDER_DRIVER=remoteMOJANG_TEXTURES_UUIDS_PROVIDER_URL=https://api.mojang.com/users/profiles/minecraft/
-
Implemented worker mode. The app starts with the only one API endpoint:
/api/worker/mojang-uuid/{username},
which is compatible with Mojang's endpoint to exchange
username to its UUID. It can be used with some load balancing software to increase throughput of Mojang's textures
proxy by splitting the load across multiple servers with its own IPs. -
Textures extra param is now can be configured via
TEXTURES_EXTRA_PARAM_NAMEandTEXTURES_EXTRA_PARAM_VALUE. -
New StatsD metrics:
- Counters:
ely.skinsystem.{hostname}.app.mojang_textures.usernames.textures_hitely.skinsystem.{hostname}.app.mojang_textures.usernames.textures_miss
- Counters:
-
All incoming requests are now logging to the console in
Apache Common Log Format. -
Added
/healthcheckendpoint. -
Graceful server shutdown.
-
Panics in http are now logged in Sentry.
Fixed
ely.skinsystem.{hostname}.app.mojang_textures.usernames.iteration_sizeand
ely.skinsystem.{hostname}.app.mojang_textures.usernames.queue_sizeare now updates even if the queue is empty.- Don't return an empty object if Mojang's textures don't contain any skin or cape.
- Provides a correct URL scheme for the cape link.
Changed
- BREAKING:
QUEUE_LOOP_DELAYparam is now sets as a Go duration, not milliseconds.
For example, default value is now2s500ms. - BREAKING: Event
ely.skinsystem.{hostname}.app.mojang_textures.already_in_queuehas been renamed into
ely.skinsystem.{hostname}.app.mojang_textures.already_scheduled. - Bumped Go version to 1.14.
Removed
- BREAKING:
ely.skinsystem.{hostname}.app.mojang_textures.invalid_usernamecounter has been removed.