couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kowsik <kow...@gmail.com>
Subject Re: Announcing blitz.io public beta
Date Tue, 08 Mar 2011 17:08:45 GMT
Awesome!

K.
---
http://blitz.io
http://twitter.com/pcapr

On Tue, Mar 8, 2011 at 2:28 AM, Nicholas Orr <nicholas.orr@zxgen.net> wrote:
> yeah that's what I assumed.
> I've never looked into Rewrite URLs or Vhosts.
> now I have it was pretty simple after ~10 refreshes and multiple readings of
> the docs ;)
> for the record, do this:
> edit your domain.com zone and add an A record for blitz.domain.com
> edit local.ini add a vhost
> ===
> [vhosts]
> blitz.domain.com:port = /blitz/_design/blitz/_rewrite
> ===
> restart couchdb
> create a blitz database
> create a new document
> ===
> {
>    "_id": "_design/blitz",
>    "rewrites": [
>        {
>            "from": "/mu-blitz-url",
>            "to": "blitz.txt",
>            "method": "GET",
>            "query": {
>            }
>        }
>    ]
> }
> ===
> save the document
> create a blitz.txt file and put the content blitz told you put in it
> upload blitz.txt as an attachment to the design document
> goto blitz.domain.com:port/mu-blitz-url
> you should get the content of the blitz.txt attachment
> happy days :)
> ok so now to test couchdb, i did want to hit the root of couchdb where it
> reports the version however if you put "../../../" in the to of the rewrite
> couchdb complains too many .. as a security issue, fair enough. so did 2x ..
> and thus my design doc looks like this now
> ===
> {
>    "_id": "_design/blitz",
>    "_rev": "7-0b8cf881f0dc8d26198703eb86e93eb1",
>    "rewrites": [
>        {
>            "from": "/mu-blitz-url",
>            "to": "blitz.txt",
>            "method": "GET",
>            "query": {
>            }
>        },
>        {
>            "from": "/",
>            "to": "../../",
>            "method": "GET",
>            "query": {
>            }
>        }
>    ]
> }
> ===
> so i rushed my node (which is a GET on the db, http://locahost:5984/blitz,
> thus stats)
> and here is what blitz has to say about this couchdb node running in xen vm
> hosted at crucial in sydney: http://yfrog.com/gzn6zqp
> neato
> On Tue, Mar 8, 2011 at 7:37 PM, kowsik <kowsik@gmail.com> wrote:
>>
>> Rewrite URLs?
>>
>> K.
>> ---
>> ps: It's getting late in CA. Past my bedtime. Maybe help you tomorrow?
>>
>> On Tue, Mar 8, 2011 at 12:07 AM, Nicholas Orr <nicholas.orr@zxgen.net>
>> wrote:
>> > This is pretty neat
>> > http://twitter.com/#!/SoreGums/status/45029662912544769
>> >
>> > I don't really have anything to test against so thought I'd try a
>> > CouchDB
>> > instance.
>> > Unfortunately I don't know how I can authorize it....
>> > How do I get /mu-asdomao to respond with 42 in CouchDB?
>> > Maybe I can just auth the domain and a random port?
>> >
>> > I'll try that :)
>> >
>> > Nicholas
>> >
>> > On Tue, Mar 8, 2011 at 9:05 AM, kowsik <kowsik@gmail.com> wrote:
>> >
>> >> We figured load and performance testing should really be a fun sport.
>> >> :-) CouchDB-powered of course.
>> >>
>> >> http://blitz.io
>> >>
>> >> K.
>> >> ---
>> >> http://blitz.io
>> >> http://twitter.com/pcapr
>> >> http://labs.mudynamics.com
>> >>
>> >
>
>

Mime
View raw message