jomo
d967db3ad4
use environment variables for configuration
2020-03-29 07:32:39 +02:00
jomo
1816b18b12
update deps
2018-02-16 18:45:56 +01:00
jomo
24cfc03811
print 'Not found' on invalid path
2016-11-08 00:21:33 +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
96b277b806
add missing documentation
2016-02-19 19:24:27 +01:00
jomo
3620a63d14
fs.exists is deprecated, switch to fs.access
2016-02-14 20:17:09 +01:00
jomo
0b58b3a4d1
add final log before shutting down on SIGTERM
2015-08-16 22:27:22 +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
Jake
c2e2a98b82
Make 'too busy' an error in logs
2015-07-16 17:52:16 -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
a2e0edc491
Namespace and move config to root directory, closes #124
2015-06-25 13:12:08 -05:00
Jake
58a2f0662d
capaaacittty
2015-06-22 23:34:35 -05:00
jomo
c54e3020e9
shut up travis
2015-05-28 01:35:39 +02:00
jomo
add4d1abac
allow some latency
2015-05-24 17:22:47 +02:00
jomo
e1f1fe7c57
add toobusy 503 response
2015-05-24 13:34:49 +02:00
jomo
efd9c0ccee
don't remove trailing slash for root path
2015-04-25 15:55:59 +02:00
jomo
79ab296f1f
get rid of path.resolve
...
This doesn't handle '..' and other things that
path.resolve does, but if you're passing weird
things to a URL, your fault.
2015-04-25 15:49:47 +02:00
jomo
69f0ee23be
use new response module for assets
...
unfortunately we can't use stream pipes because we need to generate
a hash of the content for the Etag.
I think proper caching (i.e. Etag) is very important
2015-04-22 00:06:10 +02:00
jomo
13169be774
use new response module for capes + more
...
- made sure that get_cape returns a status
- response.js returns 404 if body is empty
- 'X-Storage-Type: undefined' is no longer returned when status is `null`
2015-04-21 23:27:10 +02:00
jomo
8971e3c02b
use new response module for renders + bug fixes
2015-04-21 00:57:14 +02:00
jomo
a947b02c87
use new response module for skins
2015-04-20 23:18:27 +02:00
jomo
0b0882e63d
use new response module for index
2015-04-20 22:19:57 +02:00
jomo
8dc55442b1
remove debug log
2015-04-20 01:12:16 +02:00
jomo
d025a3004d
remove always-empty first entry in req.url.path_list
...
rhyme pro 😎
2015-04-20 01:10:39 +02:00
jomo
3cbf73b0d7
create new response module & use it for avatars
2015-04-20 00:41:11 +02:00
jomo
fce58722c8
start work on #45
2015-04-12 19:53:34 +02:00
jomo
9d2fe0c454
some logging fixes
2015-04-06 03:32:13 +02:00
jomo
f6c4e62846
fix path in error message
2015-04-06 03:27:28 +02:00
jomo
b84a65fd8e
restructure directories
...
www.js is our 'main' file, it's now at the project's root instead of server.js
routes, views, assets are now in lib, too
2015-04-06 03:06:38 +02:00