97 Commits

Author SHA1 Message Date
James Muscat
802633d3ef Bind gateway to localhost by default (e.g. and then proxy via nginx) 2015-07-06 16:10:29 +01:00
James Muscat
443882592e Back out wsgi entry point since it breaks things in complicated ways. 2015-07-01 23:23:47 +01:00
James Muscat
2d6e7d9f38 This just needs to be a list, not a dict. 2015-07-01 22:27:12 +01:00
James Muscat
13a651175d We still need to configure the gateway when running in wsgi mode! 2015-07-01 22:25:38 +01:00
James Muscat
f591d3a815 Slightly nicer error message. 2015-07-01 21:46:16 +01:00
James Muscat
a2ebb94c7a Coding standards. 2015-07-01 21:44:42 +01:00
James Muscat
8cdd2b4c84 Add WSGI hook for running gateway through uWSGI. 2015-07-01 21:44:19 +01:00
Jonathan Harris
1f85be3beb Add reason text to reply for outdated schemas. 2015-06-20 00:28:50 +01:00
AnthorNet
c0d4f4c8b0 Add outdated schema functionnality.
Also added shipyard to release.
2015-06-19 22:23:20 +02:00
AnthorNet
ac92ae7076 Removed comment 2015-06-08 10:14:04 +02:00
AnthorNet
6a86ee904f Make use of pkg_resources to keep egg file zipped
Used to keep schemas in egg file
2015-06-08 09:59:20 +02:00
AnthorNet
85ab051b9a Remove unnecessary stats collector in favor of monitor 2015-06-08 08:20:05 +02:00
AnthorNet
ceaac2be74 Fix PEP8 2015-06-05 16:43:59 +02:00
AnthorNet
2f72fe84fe Moved _Core/_Conf to core/conf and some UTF8 fixes 2015-06-05 16:08:32 +02:00
James Muscat
6ed5537d71 Merge branch 'master' of https://github.com/jamesremuscat/EDDN 2015-06-05 14:12:22 +01:00
AnthorNet
37fdd5333e Merge pull request #13 from AnthorNet/Pull-for-James---Release-0.4
EDDN Release 0.4
2015-06-05 12:45:25 +02:00
AnthorNet
69f7134a94 Fix wrong argument in gateway 2015-05-07 19:33:59 +02:00
AnthorNet
c7187e90bd Added topic in Gateway/Relay to allow filtering 2015-05-05 12:37:57 +02:00
AnthorNet
863d5937c7 Remove unnecessary comment 2015-05-04 13:33:58 +02:00
AnthorNet
6639b3a13e Moved core functions to _Core 2015-05-04 13:21:58 +02:00
AnthorNet
915aee107c Fix missing schemas in setup 2015-05-04 12:57:40 +02:00
AnthorNet
a80994ae4a Change conf directory name 2015-05-04 11:41:15 +02:00
James Muscat
c8bba2b880 Tally software+version. 2015-05-01 12:45:08 +01:00
James Muscat
592084973f Tally each type of message we see, so we can track use of new schemas as
they get deployed.
2015-04-28 12:13:33 +01:00
James Muscat
976454c358 Extra stats: uptime and EDDN version. 2015-04-23 09:57:51 +01:00
James Muscat
3fc16cbb0a Set CORS header to allow status page to read these values. 2015-04-15 15:00:39 +01:00
James Muscat
4c314a9b9b Keep track of how many messages fail gateway validation. 2015-04-14 17:06:26 +01:00
James Muscat
02f1ebc307 Unused import. 2015-04-14 16:39:09 +01:00
James Muscat
ddd81574ed Allow configuration of gateway HTTP port rather than hardcoding. 2015-04-14 16:38:56 +01:00
James Muscat
46292e3c30 Don't corrupt the commandline unless we're asked to.
The hacky approach caused problems with anything else trying to use
argparse (e.g. nosetests). This approach only tries to parse the
commandline if we need to e.g. within Relay/Gateway's main() function.
2015-04-14 14:30:26 +01:00
James Muscat
da426c1d89 Encapsulate settings as a class. Make a singleton available. 2015-04-14 00:30:22 +01:00
James Muscat
7d7f977cea Rip out the old method of collecting stats in favour of the generic way. 2015-04-13 18:32:32 +01:00
James Muscat
7c146a14c4 Factor out common code into StatsCollector. 2015-04-13 18:04:33 +01:00
James Muscat
fce10cdaa6 Simple stat collector, to better monitor gateway throughput and health. 2015-04-09 00:35:27 +01:00
James Muscat
639703f8c9 Avoid deprecated access to BaseException.message. 2015-04-04 01:02:18 +01:00
James Muscat
608ff49723 Build an egg, and create an eddn-gateway script.
Currently can only be run from a directory where ../schemas exists
and is populated...
2015-04-04 00:31:17 +01:00
James Muscat
a20da1d04e Default to listening on all network interfaces. 2015-04-04 00:00:23 +01:00
James Muscat
e8a2e8dc63 Always use UTC for the GatewayTimestamp. 2015-01-12 13:15:20 +00:00
James Muscat
ddeca9f00c Add uploader key to header section if we have a salt. 2014-12-18 13:04:15 +00:00
James Muscat
56853854ca Add a gateway timestamp to the message (e.g. time of receipt by EDDN,
not time of generation of market data).
2014-12-17 19:50:37 +00:00
James Muscat
cceb77d7a1 We don't actually want to return the original JSON. 2014-12-17 14:11:24 +00:00
James Muscat
a7925923cf Configure Validator with our schema (don't do the validation yet). 2014-12-17 14:06:53 +00:00
James Muscat
351b00aed2 Return HTTP 400 rather than 200 on error. 2014-12-17 13:40:41 +00:00
James Muscat
fdeea2f7c2 Make Validator its own class, because it's going to want state soon. 2014-12-17 13:38:06 +00:00
James Muscat
2d406f9e25 Create a framework for JSON validation at the gateway. 2014-12-17 13:30:09 +00:00
James Muscat
43a9931e38 Mercilessly crib EMDR's wsgi app for the Gateway. Currently just passes
any valid JSON through.
2014-11-16 12:48:48 +00:00
James Muscat
445c92c1b2 Skeletal but functional system.
Gateway just pumps messages into zmq to a Relay, Client parses them as
JSON and spits them out.
2014-11-15 17:12:23 +00:00