775 Commits

Author SHA1 Message Date
jomo
a928952dc4 don't force image directories to be relative 2015-08-20 01:52:01 +02:00
jomo
9ed431d7ad remove images/ (see @4d94936) 2015-08-18 01:33:00 +02:00
jomo
4d949362be change default config to use /var/lib/crafatr/images
I think this makes more sense, especially when you run multiple instances
so they can use the same image cache instead of each version relying on their own
2015-08-18 01:11:38 +02:00
jomo
b460260bae remove logs/
should be up to the user where to put log files
and to make sure that directory actually exists

currently nothing in this code base expects
logs/ to be present.
2015-08-18 01:08:01 +02:00
jomo
0b58b3a4d1 add final log before shutting down on SIGTERM 2015-08-16 22:27:22 +02:00
jomo
85e7b4b571 remove clusters
clusters aren't supported, see #80
until we actually use clusters, having a main AND a single worker cluster just makes things more difficult
2015-08-16 22:18:17 +02:00
jomo
72708ca590 remove forever, update dependencies
forever should be used externally to start crafatar. it's not an internal dependency
2015-08-16 22:14:26 +02:00
jomo
79da225b9f gracefully shut down on SIGTERM
this will close the server, i.e. all new connections will be dropped
while existing connections are able to complete within 30 seconds
otherwise they are dropped and the server force quits
2015-08-16 22:11:08 +02:00
jomo
49b4ae1a6e exit on process error
From the iojs docs:

> An unhandled exception means your application - and by extension io.js itself -
> is in an undefined state. Blindly resuming means anything could happen.
>
> Think of resuming as pulling the power cord when you are upgrading your system.
> Nine out of ten times nothing happens - but the 10th time, your system is bust.
>
> uncaughtException should be used to perform synchronous cleanup before shutting
> down the process. It is not safe to resume normal operation after
> uncaughtException. If you do use it, restart your application after every
> unhandled exception!
2015-08-16 06:17:38 +02:00
jomo
d6a9f7c71a add JS to check mojang's server status
does CORS request to status.mojang.com/check and figures out if 'uuid', 'name' or 'both' are affected
not doing anything yet
2015-07-28 23:58:48 +02:00
jomo
442dee0280 don't print all this shit when we receive a 500 2015-07-27 20:06:16 +02:00
jomo
3edf89e884 Merge branch 'master' of github.com:crafatar/crafatar 2015-07-22 23:24:30 +02:00
jomo
c2d2644bbe make travis fast attempt 2
See @fc5ab113db93842cf27b5d94bd98c597a7d0f133 for attempt 1
2015-07-22 23:24:26 +02:00
jomo
256edd622f https 2015-07-21 10:06:01 +02:00
jomo
fd647c5953 3D renders are still beta
@Jake0oo0 fyi

We haven't changed anything on our 3D renders since we first introduced them.
They still have rendering glitches, they still don't render the jacket layer,
they still don't support alex-type skins.

Telling people this is no longer beta (@2515575) doesn't seem like a good idea.
2015-07-20 22:28:06 +02:00
Jake
db72d05680 Dependency update 2015-07-18 00:58:27 -05:00
Jake
7f4fa0dea2 Merge branch 'master' of github.com:crafatar/crafatar 2015-07-18 00:46:31 -05:00
Jake
2515575f25 Renders are no longer in beta, encode default url 2015-07-18 00:46:24 -05:00
jomo
607dcaf6e5 use status -2 for 404s
human_status (response.js) defines code -2 as 'user error'. 404 is definitely a user error, so using that makes sense.
eventually we should change the whole status code thing with #120
2015-07-17 10:09:34 +02:00
jomo
fc5ab113db Merge branch 'master' of github.com:crafatar/crafatar 2015-07-17 01:37:35 +02:00
jomo
d0689c9e3b change two more logs to debug 2015-07-17 01:37:26 +02:00
Jake
c2e2a98b82 Make 'too busy' an error in logs 2015-07-16 17:52:16 -05:00
Jake
b1cdf61e4b Change invalid request path to be a 404 rather than 422, implement status id in response module 2015-07-16 17:48:48 -05:00
Jake
d71d99fa9a Make a vast majority of logs debug, make it so that essential info is in one line 2015-07-16 17:42:41 -05:00
Jake
7e8c65fb33 Add tests for invalid URL paths, closes #123 2015-07-16 17:31:20 -05:00
Jake
f4e31eab4f Prevent twitter logo from overlapping Crafaatar title on mobile 2015-07-16 17:15:03 -05:00
Jake
4ed0b75c9d More meta tags 2015-07-16 17:09:54 -05:00
jomo
5de8c77ffb fix docker-options 2015-07-14 01:14:23 +02:00
jomo
53e571bd6e renew dokku installation instructions
+ some minor readme changes
2015-07-14 00:45:58 +02:00
jomo
73af64ef2b add IRC badge 2015-07-12 17:36:59 +02:00
jomo
44cff242d7 update dependencies 2015-06-29 15:42:45 +02:00
jomo
72840433cb use proper URL encoding in tests 2015-06-25 21:55:23 +02:00
jomo
d56b10955e add tests for uuid defaults, #115 2015-06-25 21:46:14 +02:00
jomo
8c022e5cb6 'useranme' 2015-06-25 21:34:15 +02:00
jomo
f9b7ffb5b7 fix redirection test 2015-06-25 21:33:47 +02:00
jomo
3e4f150262 add missing import N°2 2015-06-25 21:24:26 +02:00
jomo
fa8e719de3 add missing import 2015-06-25 21:22:54 +02:00
jomo
34f94bf9b5 get rid of redundant config names #124 2015-06-25 21:19:50 +02:00
jomo
20b6fd55aa clean up config comments, fix postinstall. #124 2015-06-25 20:44:38 +02:00
jomo
2d71d2954e clean up gitignore 2015-06-25 20:35:54 +02:00
Jake
e9071b123c Handle several unhandled errors - this is becoming a mess and we should really use a package to clean this up - closes #113 2015-06-25 13:26:27 -05:00
Jake
1f4e5430b7 Remove config 2015-06-25 13:21:03 -05:00
Jake
0153640422 Ignore config.js 2015-06-25 13:20:51 -05:00
Jake
a2e0edc491 Namespace and move config to root directory, closes #124 2015-06-25 13:12:08 -05:00
Jake
2eb1112c3b Fix render defaults 2015-06-24 15:14:28 -05:00
Jake
d2ab7b87ad Fix tests with new default code 2015-06-24 15:08:05 -05:00
Jake
8c39d0c017 Add support for userIds as defaults, ccloses #115 2015-06-24 01:23:22 -05:00
Jake
f1fd92f1cf Disallow additional paths, closes #123 2015-06-24 00:50:38 -05:00
Jake
58a2f0662d capaaacittty 2015-06-22 23:34:35 -05:00
Jake
7b5a871c5a Use lwip 0.0.7 from npm 2015-06-06 10:32:24 -05:00