jomo
a3cbedb859
update to bootstrap 4 alpha
...
- there's no official CDN for bootstrap 4 yet
- fixed breaking change in bootstrap's navbar
2015-10-14 23:41:51 +02:00
jomo
bf1e26d2c5
get rid of jade/haml, use ejs instead
2015-10-14 01:12:30 +02:00
jomo
06caf589ab
don't lowercase default URLs
2015-09-30 17:00:52 +02:00
jomo
83defa6885
make default parameter case insensitive, add missing docs to renders
...
See #142
2015-09-30 00:52:51 +02:00
jomo
ecfec6a407
use MHF_Steve and MHF_Alex instead of steve and alex in default parameter
...
See #142 (not fixed by this commit!)
Basically, this just adds mhf_steve and mhf_alex as special cases for the default parameter only
2015-09-30 00:38:32 +02:00
jomo
fd4fb0764c
return & use lwip-stripped image in skins.save_image
...
no need to pass along (possibly) bulky or broken images!
see #147
2015-09-29 23:32:16 +02:00
jomo
c8d74d47be
avoid reserved property names (+ test), fixes #145
2015-09-25 19:24:56 +02:00
jomo
1ecf3c0122
add 504 to expected return codes, don't cache unexpected responses
2015-09-21 22:21:14 +02:00
jomo
cc2840ae4b
log error if http code not available
2015-09-20 22:02:37 +02:00
jomo
d49f7279b3
log response ID first for access log
...
also made sure 'headers' is defined before it's used
2015-09-20 21:45:37 +02:00
jomo
a15cb20144
TooManyRequestsException shouldn't actually throw an error
...
all other errors thrown here are network issues, this is not.
2015-09-20 21:43:12 +02:00
jomo
06895cdd81
add TooManyRequestsException to silent_errors
2015-09-20 21:35:46 +02:00
jomo
9cdca6acda
don't throw strings
2015-09-20 21:28:43 +02:00
jomo
26f6b089ef
log errors only once, fixes #140
...
also made sure some (network) errors have level 'WARN'
these are printed without stacktrace
2015-09-20 21:17:13 +02:00
jomo
b97087c099
catch HTTP 500/503 and empty response, fixes #141
2015-09-20 20:58:34 +02:00
jomo
750d741308
log when cleaner has nothing to do
2015-09-17 01:51:11 +02:00
jomo
6d12ed685b
enhance renders by using binary transparency
...
this is a temporary fix for #32 .
it doesn't solve the problem, but it makes the renders much less worse.
in combination with #134 this will hopefully lead to fixing the problem entirely
2015-09-06 00:22:57 +02:00
jomo
b4ae89832a
add missing 'cache' import in routes/skins
2015-09-02 23:22:52 +02:00
jomo
841eb39f05
remove obsolete imports
2015-08-31 05:41:18 +02:00
jomo
3a61e15abf
various networking.js improvements
...
- cleaned up some messy if/else code, replaced with nicely readable switch/case
- catch JSON.parse errors
2015-08-31 00:10:35 +02:00
jomo
52098ca2f8
hotfix for #139
2015-08-30 22:12:43 +02:00
jomo
755cc74170
don't update file dates
...
this was originally implemented because we wanted to delete the oldest images on disk
where 'oldest' means not *used* for the longest time
that's not useful and was never actually implemented, so we don't need this
2015-08-30 04:48:50 +02:00
jomo
78f2f2027f
cleaner: be less verbose
2015-08-30 04:29:56 +02:00
jomo
6746459c8d
delete cape images when cleaning
2015-08-30 03:57:29 +02:00
jomo
e56f300d3e
use EPHEMERAL_STORAGE instead of HEROKU env
...
afaik you can have persistent storage on heroku, at least via addons
and heroku is probably not the only environment where one has a temporary file system
2015-08-30 02:11:35 +02:00
jomo
a928952dc4
don't force image directories to be relative
2015-08-20 01:52: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
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
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
6213344090
lots of rendering improvements
...
- we don't need to resize images. canvas can do that for us
- we don't need to use `scale(-1, 1)` to draw flipped
- most of the old/new skin format shares the same code
- we can draw the skin image directly on the canvas
2015-07-23 11:13:24 +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
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
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
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
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
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