Damian Mee
21c957cf0f
style(server): server setup cleanup
2014-08-05 00:59:08 +02:00
Josh Harvey
0db7fbcde0
WIP
2014-07-04 19:39:52 -04:00
Josh Harvey
bd96bb3caf
Merge branch 'production' into merge-logging
2014-05-03 16:28:25 -04:00
Josh Harvey
72e7c8addc
return json on all server errors
2014-05-03 16:26:32 -04:00
Josh Harvey
6efd595851
fixed unpaired connection bug
2014-05-02 11:18:41 -04:00
Josh Harvey
d2cb7e8a07
WIP
2014-05-02 10:25:39 -04:00
Josh Harvey
9a4550ba23
took out unused code
2014-04-27 19:34:30 -04:00
Josh Harvey
709b472ecc
actually, just take out request logging and demote other noisy stuff to debug
2014-04-27 11:46:32 -04:00
Josh Harvey
22fb9daaa8
suppressed poll logging
2014-04-27 11:33:10 -04:00
Josh Harvey
74e8b6ed50
suppressed poll logging
2014-04-27 11:31:34 -04:00
Josh Harvey
6ed979b1af
simplified unpairing
2014-04-20 12:07:48 +03:00
Josh Harvey
b5400cd559
assign to _lamassuConfig
2014-04-18 17:46:05 +03:00
Maciej Małecki
f5f27edaf0
Move `postgresql_interface.js to lib
2014-04-16 11:15:03 +02:00
Maciej Małecki
d9682e668f
Remove favicon and methodOverride middlewares
...
`methodOverride` is supposed to provide compatibility for older
"browsers" which aren't able to send XHR requests with proper HTTP
methods. Since the only thing talking to `lamassu-server` is the ATM, we
don't need this middleware.
`favicon` middleware is exactly what it sounds like.
2014-04-16 10:59:15 +02:00
Maciej Małecki
1f3c59dbc0
More refactoring on Trader
2014-04-14 15:16:53 +02:00
Maciej Małecki
05fef31fce
-x lib/app.js
2014-04-14 14:37:28 +02:00
Maciej Małecki
b2d643cf1d
Do not re-assign
2014-04-12 13:55:03 +02:00
Maciej Małecki
818f48398c
Fix https
2014-04-11 05:08:38 +02:00
Maciej Małecki
02fcc42638
Make lib/app.js a factory for lamassu-server
...
Extract all command line parsing to `bin/lamassu-server`.
This will effectively make it easier to write tests for
`lamassu-server`.
2014-04-11 04:30:22 +02:00
Maciej Małecki
3932e17b2e
Move atm-api.js to routes.js
2014-04-11 03:32:37 +02:00
Maciej Małecki
f376e96ab2
Start the refactor
2014-04-10 12:09:29 +02:00
Maciej Małecki
e5b94527a9
Attach device object from isAuthorized to request
2014-04-07 08:29:42 +07:00
Maciej Małecki
d80758e834
Remove unused cookieParser and session middlewares
2014-04-07 08:29:35 +07:00
Maciej Małecki
42b5a264fe
Use lamassu-config@0.2.0
2014-04-04 05:35:21 +07:00
Maciej Małecki
e549764a66
Simplify connection string
...
We're using `DATABASE_URL` environment variable anyway.
2014-04-04 02:37:45 +07:00
Josh Harvey
0840a40bfc
removed duplicate require
2014-04-02 16:48:20 -04:00
Josh Harvey
c6db15b154
fixed ATM authorizing
2014-03-24 01:01:48 -04:00
Maciej Małecki
3a4fe7738e
Pass authMiddleware and config to lamassu-atm-protocol
2014-03-18 02:24:40 +01:00
Maciej Małecki
9f32dddf19
Use HTTPS by default and accept --key and --cert
2014-03-17 21:55:14 +01:00
Maciej Małecki
784914be7a
Add ciphers
2014-03-17 21:49:31 +01:00
Maciej Małecki
802ca190ee
Implement client certificate middleware
2014-03-17 16:47:39 +01:00
Maciej Małecki
7e9f540194
Pass requestCert to https.createServer
2014-03-17 16:47:39 +01:00
Maciej Małecki
8c19d2ad50
Move requires to the top
2014-03-15 02:54:43 +01:00
Maciej Małecki
f80dddd68a
Make lib/app.js properly executable
2014-03-12 03:06:08 +01:00
Maciej Małecki
11fb50a2f1
Recommit everything because of credentials
2014-03-07 23:15:56 +01:00