921 Commits

Author SHA1 Message Date
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
b0f50cbed0 print base64 encoded body if CRC does not match 2015-10-13 00:51:03 +02:00
jomo
8b2ccf3368 add new CRC checksums
updated OS X + cairo, so obviously the checksums change, right? right??
2015-10-13 00:50:25 +02:00
jomo
01ce06cd22 Move Installation to wiki 2015-10-07 01:10:41 +02:00
jomo
7714e0e0ef add case sensitive default URL tests, so 06caf589abfc4f7a552714558ac5f78abddeeabb won't happen again 2015-09-30 21:06:16 +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
6fbfd6c355 update dependencies 2015-09-26 16:22:32 +02:00
jomo
c8d74d47be avoid reserved property names (+ test), fixes #145 2015-09-25 19:24:56 +02:00
jomo
5e1e7f3701 update dependencies 2015-09-23 00:29:50 +02:00
jomo
5e7d116364 readme IRC badge improvement
the server is now in the badge label and the channel is shown on hover
2015-09-22 21:37:55 +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
7e77142b29 add link to crafatar/setup 2015-09-15 04:38:24 +02:00
jomo
8ddc300a11 #138 bump http_timeout to 2 seconds
we run into the timeout quite frequently, even on a fast network.
2s should be long enough for mojang to reply
2015-09-06 03:40:17 +02:00
jomo
6a630f23b9 add new test CRCs for @6d12ed6 2015-09-06 00:47:17 +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
fe12901f41 update app.json
Also fixed our description in package.json
2015-09-03 00:26:25 +02:00
jomo
47a978df6c add image dir to git 2015-09-02 23:57:08 +02:00
jomo
90022d9e6c revert 4d949362beeaf432201f576d83518dd0bb0351a8 2015-09-02 23:50:20 +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
ccc7314ea0 fix 'Permission denied' on travis 2015-08-30 23:19:45 +02:00
jomo
5f0e16897d travis 💩 N°2 2015-08-30 22:24:35 +02:00
jomo
5aaf075f94 travis 💩 2015-08-30 22:21:01 +02:00
jomo
52098ca2f8 hotfix for #139 2015-08-30 22:12:43 +02:00
jomo
2e738f8b40 use crafatar/node-df
until adriano-di-giovanni/node-df#3 is merged
fixes #4
2015-08-30 05:42:28 +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
5f703eda70 check disk/redis every 10 minutes 2015-08-30 03:58:57 +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
ac9cd93c8e 512MB free disk space is better than 10MB 2015-08-29 22:42:02 +02:00
jomo
3156423209 fix typo 2015-08-22 18:30:29 +02:00
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