209 Commits

Author SHA1 Message Date
MICHAEL JACKSON
dc1af59fa1 Tweak formatting 2017-07-12 20:03:39 -07:00
Mordy Tikotzky
f91bf5abd7 Manually set mime type for TypeScript files 2017-07-12 19:53:02 -07:00
Mordy Tikotzky
c68dac5f33 Add tests for extensions with overridden contentTypes 2017-07-12 19:53:02 -07:00
Mordy Tikotzky
3d4f50131a Migrate some files types to use mime.define 2017-07-12 19:53:02 -07:00
MICHAEL JACKSON
fc3152f819 Update README 2017-07-03 15:51:20 -07:00
MICHAEL JACKSON
ac09a03c75 Blacklist some malicious packages 2017-07-03 15:29:18 -07:00
MICHAEL JACKSON
3f044cb7e7 Revert "Remove "blacklist" feature"
This reverts commit 24662763b11ed390b08e4ee1bc6833d507107e4d.
2017-07-03 15:20:45 -07:00
MICHAEL JACKSON
bb3e73918a Use OpenRedis 2017-06-21 11:52:32 +10:00
MICHAEL JACKSON
141e440b94 Revert "Fix extraction race condition"
This reverts commit 4aba460a6309ece485603bab3017742b1443e5b7.
2017-06-21 11:22:35 +10:00
MICHAEL JACKSON
4aba460a63 Fix extraction race condition
This is a fix for a subtle bug that caused unpkg to incorrectly send a
404 response for valid filenames on the initial request for a package.
It also prevents the same package from being downloaded from the
registry by multiple concurrent requests.

Fixes #38
Closes #39
2017-06-18 16:57:26 +10:00
MICHAEL JACKSON
dbaafe24db Add copyright notice 2017-06-09 13:49:27 -07:00
MICHAEL JACKSON
9bc5d47f1e Remove Cache-Control header from HTML content 2017-06-09 13:36:31 -07:00
MICHAEL JACKSON
db8f1fa5a0 Simplify middleware 2017-06-09 13:29:21 -07:00
MICHAEL JACKSON
c3d9ede460 Return 404 for packages with no version info 2017-06-09 10:10:42 -07:00
MICHAEL JACKSON
40cac70cc2 Remove space from X-Forwarded-For value in logs 2017-06-06 16:00:40 -07:00
MICHAEL JACKSON
84075faeed Simplify server log format 2017-06-06 15:51:25 -07:00
MICHAEL JACKSON
24662763b1 Remove "blacklist" feature 2017-06-06 15:28:08 -07:00
MICHAEL JACKSON
2ac8dc554e Fix Content-Length header in various response helpers 2017-06-01 09:55:58 -05:00
MICHAEL JACKSON
ff14e7d28d Encode URIs in redirect headers 2017-06-01 07:48:01 -05:00
MICHAEL JACKSON
08407a1a2d Fix syntax error 2017-06-01 07:22:45 -05:00
MICHAEL JACKSON
77007eacdf More generous gutters and margins on index pages 2017-05-30 10:03:02 -07:00
MICHAEL JACKSON
9dc0630bb3 Return top scores already sorted 2017-05-30 09:20:45 -07:00
MICHAEL JACKSON
bca5babb7d Expire all stats keys eventually 2017-05-28 22:41:01 -07:00
MICHAEL JACKSON
1cb6233383 Move workers into server dir 2017-05-26 09:04:03 -07:00
MICHAEL JACKSON
d26071ea76 Consolidate some stats server functions 2017-05-25 16:37:54 -07:00
MICHAEL JACKSON
7742b9bd02 Add top packages to stats summary script 2017-05-25 16:12:44 -07:00
MICHAEL JACKSON
3ea2ac210e Add script for showing stats summary 2017-05-25 15:27:42 -07:00
MICHAEL JACKSON
c0e8d771d0 Update local tmp dir name 2017-05-25 12:01:29 -07:00
MICHAEL JACKSON
84f297b400 Use SETEX for storing package.json configs
Also, remove option for in-memory cache.
2017-05-25 11:54:15 -07:00
MICHAEL JACKSON
f297ba2217 Remove debug statement 2017-05-25 11:39:18 -07:00
MICHAEL JACKSON
d2f318f53f Remove unneeded require 2017-05-25 11:31:31 -07:00
MICHAEL JACKSON
f9a21522c2 Add code from express-unpkg repo 2017-05-25 11:25:42 -07:00
MICHAEL JACKSON
f7019626a2 Add script to show a single log entry 2017-05-24 22:23:53 -07:00
MICHAEL JACKSON
68b6b94e54 Add LOG_IDS env variable 2017-05-24 21:38:06 -07:00
MICHAEL JACKSON
751b702a55 Run hourly/daily analytics more often 2017-05-24 20:43:59 -07:00
MICHAEL JACKSON
318adfab3b Add warning for missing dashboards 2017-05-24 20:19:50 -07:00
MICHAEL JACKSON
1f25417775 Add ingest_stats worker 2017-05-24 16:54:19 -07:00
MICHAEL JACKSON
af19f22bb1 Some clean up 2017-05-24 12:25:08 -07:00
MICHAEL JACKSON
1748dc96ed Add bytes info for packages and hostnames 2017-05-24 12:07:29 -07:00
MICHAEL JACKSON
818255cd04 Update ingest logs worker start seconds key 2017-05-24 11:41:57 -07:00
MICHAEL JACKSON
05fde65cd3 Store log summary data in Redis instead of Firebase 2017-05-24 09:25:00 -07:00
MICHAEL JACKSON
6659746b3d Update logs worker 2017-05-23 17:11:22 -07:00
MICHAEL JACKSON
8138917d0b Only record referers with hostnames 2017-05-23 16:06:49 -07:00
MICHAEL JACKSON
54eec30904 Replace originRequestsPerDay with requestsPerDayAndRefererHostname 2017-05-23 15:37:53 -07:00
MICHAEL JACKSON
f3fa340ae9 More work on log ingestion 2017-05-23 15:00:09 -07:00
MICHAEL JACKSON
f535ab6b90 Tweak comment 2017-05-20 08:32:48 -07:00
MICHAEL JACKSON
57879a8d04 Add log ingestion worker 2017-05-19 22:41:24 -07:00
MICHAEL JACKSON
56e39f8c11 Add comments about __SERVER_DATA__ 2017-05-19 10:59:04 -07:00
MICHAEL JACKSON
161a890623 Update Sentry config 2017-05-19 10:35:32 -07:00
MICHAEL JACKSON
3e10fabe43 Remove Trace, add Sentry 2017-04-24 14:39:53 -07:00