4.4.0
Added
-
Mojang textures queue now can be completely disabled via
MOJANG_TEXTURES_ENABLED
param. -
Remote mode for Mojang's textures queue with a new configuration params:
MOJANG_TEXTURES_UUIDS_PROVIDER_DRIVER
and
MOJANG_TEXTURES_UUIDS_PROVIDER_URL
.For example, to send requests directly to Mojang's APIs,
set the next configuration:MOJANG_TEXTURES_UUIDS_PROVIDER_DRIVER=remote
MOJANG_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_NAME
andTEXTURES_EXTRA_PARAM_VALUE
. -
New StatsD metrics:
- Counters:
ely.skinsystem.{hostname}.app.mojang_textures.usernames.textures_hit
ely.skinsystem.{hostname}.app.mojang_textures.usernames.textures_miss
- Counters:
-
All incoming requests are now logging to the console in
Apache Common Log Format. -
Added
/healthcheck
endpoint. -
Graceful server shutdown.
-
Panics in http are now logged in Sentry.
Fixed
ely.skinsystem.{hostname}.app.mojang_textures.usernames.iteration_size
and
ely.skinsystem.{hostname}.app.mojang_textures.usernames.queue_size
are 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_DELAY
param 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_queue
has 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_username
counter has been removed.