diff options
author | makefu <github@syntax-fehler.de> | 2014-01-08 15:24:51 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-01-08 15:24:51 +0100 |
commit | d8764b3327cfe772965b3f4a947071159a1d6161 (patch) | |
tree | 7f9866c5760ddb0e55322b2e59f7895b265d616e /go/README.markdown | |
parent | 64420ecb20bc7616bacfdca7788dc2d517ea8600 (diff) | |
parent | 0d1d7d2202a0bb370d896c1c8562139fbc31b395 (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'go/README.markdown')
-rw-r--r-- | go/README.markdown | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/go/README.markdown b/go/README.markdown index 2d4ba909..22b7c642 100644 --- a/go/README.markdown +++ b/go/README.markdown @@ -12,30 +12,24 @@ ## run service - HOSTN=go PORT=80 URI_PREFIX=http://go node . + PORT=80 node . - if you omit `HOSTN`, then relative shortened uris will be generated. if you omit `PORT`, then it's `1337`. - if you omit `URI_PREFIX`, then it will be generated from `HOSTN` änd `PORT`. there's also the possibility to change the Redis key prefix which defaults to `go:` with REDIS_KEY_PREFIX=foobarmyprefix/ - to generate slightly more informative shortened uris set - - NOT_SO_SHORT=true - ## add uri - curl -F uri=https://mywaytoolonguri http://go + curl -F uri=https://mywaytoolonguri http://localhost:1337 this will give you a shortened uri. ## resolve uri - curl -L http://go/1 + curl -L http://localhost:1337/1 ## clear database |