925 Commits

Author SHA1 Message Date
jomo
7f95a34e29 simplify http status codes, update website info 2020-03-29 07:43:23 +02:00
jomo
15a4f17560 add rate limit option for sessionserver
any outgoing requests to the sessionserver
that would exceed the configured rate limit are skipped
to prevent being blocked by CloudFront

if a texture hash is cached but outdated, the cache ttl will be bumped
as if the request succeeded, in order to lower requests in the near future
2020-03-29 07:43:23 +02:00
jomo
d967db3ad4 use environment variables for configuration 2020-03-29 07:32:39 +02:00
jomo
d81e2777d2 delete unused function 2020-03-28 23:38:20 +01:00
jomo
ea1ae64283 add 403 to expected response codes 2020-03-28 23:37:08 +01:00
jomo
5eb5b6fa5e bump version to 2.1.1 v2.1.1 2020-03-24 19:26:58 +01:00
jomo
e6373002a2 update readme 2020-03-24 19:26:34 +01:00
jomo
424a4ab93b remove notice from website 2020-03-24 18:51:20 +01:00
jomo
16948de18d don't warn about closed connections 2020-03-24 18:50:58 +01:00
jomo
8e08e02272 update .travis.yml, package.json and LICENSE 2020-03-24 18:50:38 +01:00
jomo
c975cc793b remove cleaner.js 2020-03-24 18:49:42 +01:00
jomo
b7c6f7dae1 bump version to 2.1.0 v2.1.0 2020-03-21 12:44:58 +01:00
jomo
cdc8c99a22 add Dockerfile, update README 2020-03-21 12:44:58 +01:00
jomo
b3a9793b87 add note about rate limit 2020-03-21 12:10:13 +01:00
jomo
168457dfd9 update to node 12 2020-03-21 01:50:50 +01:00
jomo
1816b18b12 update deps 2018-02-16 18:45:56 +01:00
jomo
1a280b0fd7 semver bump 2018-02-16 18:04:43 +01:00
jomo
dff58c66e7 drop support for usernames
Mojang has disabled their legacy skins API:
https://twitter.com/MojangSupport/status/964511258601865216

With their API rate limits, it's now practially impossible
for us to support usernames.

Fixes #142. The default parameter allows using:

- UUID
- URL
- MHF_Alex
- MHF_Steve
- Alex
- Steve

Contrary to UUIDs, using alex/steve doesn't redirect
and instead provides the skin from a locally stored file.
2018-02-16 18:01:41 +01:00
jomo
a187fb26d4 Merge pull request #246 from InventivetalentDev/patch-1
Fix README links
2017-08-02 14:02:12 +02:00
Haylee Schäfer
ccc4e114c7 Fix README links
Fixed the readme links to properly display just the title, and not the raw markdown
2017-08-02 13:57:22 +02:00
jomo
4fdbfb442b use pajk-lwip as a temporary workaround for EyalAr/lwip#297 2017-07-13 13:03:32 +02:00
jomo
13386c96eb update to node 6.9.11
https://nodejs.org/en/blog/vulnerability/july-2017-security-releases/
2017-07-13 13:01:51 +02:00
jomo
a25e01922e fix cape test
jeb_ no longer has a cape:

{
  "id": "853c80ef3c3749fdaa49938b674adae6",
  "name": "jeb_",
  "properties": [
    {
      "name": "textures",
      "value": "eyJ0aW1lc3RhbXAiOjE0OTk5MDMzNDY3NTQsInByb2ZpbGVJZCI6Ijg1M2M4MGVmM2MzNzQ5ZmRhYTQ5OTM4YjY3NGFkYWU2IiwicHJvZmlsZU5hbWUiOiJqZWJfIiwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2E4NDZiODI5NjM5MjRjYjEzMjExMTIyNDg5MjYzOTQxZDE0MDM2ODlmOTAxNTExMjBkNTIzNGJlNGE3M2ZiIn19fQ=="
    }
  ]
}

{
  "timestamp": 1499903346754,
  "profileId": "853c80ef3c3749fdaa49938b674adae6",
  "profileName": "jeb_",
  "textures": {
    "SKIN": {
      "url": "http://textures.minecraft.net/texture/a846b82963924cb13211122489263941d1403689f90151120d5234be4a73fb"
    }
  }
}
2017-07-13 12:49:09 +02:00
jomo
3130bdf9e9 update dependencies 2017-05-14 04:20:21 +02:00
jomo
305ed1c65f update sponsor info 2017-02-12 18:31:48 +01:00
jomo
a65cc63ec8 remove alex faces from website
kappe and minecraftchick decided to delete their skins
welcome @aikar and @ammaraskar!
2016-11-08 01:07:18 +01:00
jomo
4a2226be12 update Crafatar Tools & Plugins 2016-11-08 00:41:37 +01:00
jomo
3b7b42a2f6 update Popular Crafatar users
- NameMC now has its own interactive renders, so long, and thanks for all the fish!
- PlayMindCrack has shut down
2016-11-08 00:36:46 +01:00
jomo
24cfc03811 print 'Not found' on invalid path 2016-11-08 00:21:33 +01:00
jomo
c02d3d33e9 don't respond with 304 on error when debugging is enabled 2016-11-07 04:08:19 +01:00
jomo
f1f3ba6709 use response.js for all responses
results in:
1) less duplicated code
2) default response headers being used at all times
3) *all* requests being logged properly

- adds documentation for result.code
- allows using result.code to override HTTP 500
- uses response.js for too-busy, server error, method not allowed
2016-11-07 03:59:07 +01:00
jomo
6f1c414a4a accept ESOCKETTIMEDOUT as possible timeout error
seems to be a race condition which one is thrown (?)
2016-11-04 16:48:13 +01:00
jomo
deeaee1af6 use node LTS 6.9.1 2016-11-04 16:32:23 +01:00
jomo
57115202d2 don't rely on hasOwnProperty to exist
from MDN:
JavaScript does not protect the property name hasOwnProperty; thus, if the possibility exists that an object might have a property with this name, it is necessary to use an external hasOwnProperty to get correct results
2016-11-04 16:19:12 +01:00
jomo
c6c203fc5e remove IRC from README
none of us was idling on esper anyway, and they delete your account after 30d of inactivity ¯\_(ツ)_/¯
2016-11-03 21:56:25 +01:00
jomo
f7b8fd4e8c fix rate-limiting tests
Mojang is now rate-limiting calls to their sessionserver case-insensitive.

This fix skips network-based tests for an upper-cased UUID which are previously
run with the same lower-cased UUID
2016-11-03 21:52:00 +01:00
jomo
f0b73b34d1 test code style: add trailing commas 2016-11-03 21:26:35 +01:00
jomo
1d9176711f get rid of some test log spam 2016-11-03 21:25:13 +01:00
jomo
688a34029c wait for redis connection before running tests 2016-11-03 21:19:28 +01:00
jomo
cbe2b25835 add test for empty username 2016-11-03 21:14:32 +01:00
jomo
b2d38d1093 Merge remote-tracking branch 'origin/greenkeeper-istanbul-0.4.5' 2016-11-03 21:07:08 +01:00
jomo
aeded46d86 Merge remote-tracking branch 'origin/greenkeeper-canvas-1.6.2' 2016-11-03 21:05:36 +01:00
jomo
8a10807168 Merge remote-tracking branch 'origin/greenkeeper-coveralls-2.11.14' 2016-11-03 21:04:45 +01:00
jomo
91a8facdc1 Merge remote-tracking branch 'origin/greenkeeper-crc-3.4.1' 2016-11-03 21:04:34 +01:00
jomo
42f0da9281 Merge remote-tracking branch 'origin/greenkeeper-ejs-2.5.2' 2016-11-03 21:03:58 +01:00
jomo
508ea87ff7 Merge remote-tracking branch 'origin/greenkeeper-mocha-3.1.2' 2016-11-03 21:03:49 +01:00
jomo
c0857bd622 Merge remote-tracking branch 'origin/greenkeeper-redis-2.6.3' 2016-11-03 21:03:36 +01:00
jomo
b5eb1a275e Merge remote-tracking branch 'origin/greenkeeper-toobusy-js-0.5.1' 2016-11-03 21:02:27 +01:00
greenkeeperio-bot
f668fee480 chore(package): update request to version 2.78.0
https://greenkeeper.io/
2016-11-03 14:46:59 +01:00
greenkeeperio-bot
96aa543c72 chore(package): update redis to version 2.6.3
https://greenkeeper.io/
2016-10-31 21:15:01 +01:00