39 Commits

Author SHA1 Message Date
Remy Sharp
8bcdcaed60 Add profile to reserved urls 2013-06-29 08:26:10 +01:00
Remy Sharp
e34b4a97dd Merge branch 'ably-forks-api' 2013-06-11 12:43:10 +01:00
Remy Sharp
b537de0854 Finishing up API, to allow for read only
- Added allowReadOnly in config - defaults to true
- read only has CORS support
- Add handler for :rev route, and autoload the latest (needs more cleaning up)
- Allow xhr requests to both /api/x and /abcd/123 (how it originally worked)
2013-06-11 12:41:00 +01:00
Remy Sharp
f4cbcd828a Moved location of jsbin.sqlite to working directory to avoid accidently blow away in /tmp dir. Fixes #558 2013-06-10 22:01:20 +01:00
Tom Ashworth
c6df7180df Support switching off user-related menus via config. 2013-05-24 15:44:58 +01:00
Matthew O'Riordan
44d030e88a Flag to enforce API requests over SSL 2013-05-20 07:33:26 +02:00
Matthew O'Riordan
a234941cf3 API can require an API key for a user (disallow anonymous) 2013-05-20 07:18:57 +02:00
Matthew O'Riordan
7c8d63aa78 Send JSON response for API errors 2013-05-19 14:35:17 +02:00
Remy Sharp
68323aee1b separate the tracking of application over the rendered views 2013-04-21 10:57:26 +01:00
Remy Sharp
0e30da1648 updated right-click to edit in jsbin to read more frames. Bump ver. Protected a few urls 2013-04-17 17:58:49 +01:00
Remy Sharp
d095d8c73d protected routes 2013-04-09 17:41:42 +01:00
Tom Ashworth
ce5f9f8ad6 Merge master into task/home-archive 2013-01-16 10:17:30 +00:00
Remy Sharp
e01662b235 reverse "user" in url 2013-01-15 23:21:19 +00:00
Tom Ashworth
653622b5f9 Bins are archiveable. 2013-01-14 15:05:20 +00:00
Remy Sharp
6cb7fc0b8f additional reserved terms - praying they not gone already, and forwarding /video to the youtube playlist of tips 2013-01-10 15:00:17 +00:00
Aron Carroll
2caed53c1c Improve API for setting max request limit
Renamed the key to "max-request-size" and allow units to be provided
rather than just a number. The default is now 1MB.
2012-10-27 18:11:52 +01:00
Aron Carroll
5603844722 Add "bin max-size" option
This is set in bytes and limits the maximum size of a bin panel. The
default is currently 1.5Mb.
2012-10-11 19:49:13 +02:00
Jon Linklater-Johnson
99527cb86b Implemented emailing of abuse reporting 2012-08-25 11:44:12 +02:00
Aron Carroll
159b40c177 Set the charset of the database on connection
This is part of the work needed to support the supplementary unicode
characters as described in #278.
2012-08-10 12:39:37 +01:00
Remy Sharp
31960336d7 Make logger a config option 2012-07-27 14:18:05 +01:00
Aron Carroll
d6b97dbf03 Set default timezone to UTC. Fixes #232
We need to run node in the same timezone as MySQL uses to store it's
dates so that the node-mysql module coerces the dates correctly. So by
default we assume UTC but this can be configured using the "timezone"
option.
2012-07-20 12:36:12 +01:00
Aron Carroll
4f45f4784a Lowercasing email config options 2012-07-14 12:04:32 +01:00
Aron Carroll
239f67aaf4 Update the default mail config to use sendmail #224 2012-07-14 11:26:55 +01:00
Remy Sharp
d755038d73 Again - typo! 2012-07-13 22:30:20 +01:00
Remy Sharp
70c94dc1a3 typo 2012-07-13 22:29:25 +01:00
Remy Sharp
728622635b Adjusted the protected list - moved welcome out in particular 2012-07-13 22:28:38 +01:00
Aron Carroll
7e469dba0e Add reserved words to default config. Ticket #191 2012-07-13 15:59:20 +01:00
Aron Carroll
545572c708 Now sending a simple error report when JSBin crashes #213
This can be enabled by adding a "notify" key to your config file:

  "notify": {
    "errors": ["John Doe <john@example.com>"]
  }

This can contain one or more email addresses. They will be sent an email with
the url, stack trace and other request information.
2012-07-13 15:17:55 +01:00
Aron Carroll
689665cd56 Set default host to localhost:3000
It's for the good of the npm deployment honest.
2012-07-06 23:58:53 +01:00
Remy Sharp
3c0f8083ff Adding static support 2012-07-03 23:21:09 +01:00
Remy Sharp
af29bb904c make sqlite the default for node - NOTE: php version currently not supported - big ass todo 2012-07-03 11:29:39 +01:00
Remy Sharp
f0624339e1 Pushing in @aron's changes from #190 2012-06-27 16:20:15 +01:00
Aron Carroll
d4420fac21 Add object to config containing blacklisted words 2012-05-18 17:39:11 +01:00
Aron Carroll
52bdae30a0 Add cookie based session support
This uses signed cookies which is nice but we still should not store any
user data in the cookie.
2012-05-03 19:59:05 +01:00
Aron Carroll
83bffe62e8 Update config file to use nested JSON
This makes for a far more readable config file.
2012-04-19 14:42:24 +01:00
Aron Carroll
8843c75704 Move Google Analytics id into the config file 2012-04-17 17:33:29 +01:00
Aron Carroll
8437fa761f Update the config properties to read good 2012-04-17 17:17:36 +01:00
Aron Carroll
1861d4899b Update config.php to work with the new json config files 2012-04-17 17:09:27 +01:00
Aron Carroll
6bcbf10991 Add new config files for node app 2012-04-17 16:42:08 +01:00