From de9eb1ce7f77e690765226686b392c0fb9a0c2ae Mon Sep 17 00:00:00 2001 From: Steve Jansen Date: Fri, 1 Aug 2014 17:51:43 -0400 Subject: [PATCH] update example to v0.0.2+ format --- examples/cli/json-proxy.json | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/examples/cli/json-proxy.json b/examples/cli/json-proxy.json index c2f7faf..ce71fc1 100644 --- a/examples/cli/json-proxy.json +++ b/examples/cli/json-proxy.json @@ -1,13 +1,17 @@ { - "port": 8080, - "webroot": "$config_dir", - "html5mode": "/index.html", - "forward": { - "/channel": "https://www.youtube.com:443", - "/events/(.*)": "http://news.google.com/news/section?topic=$1", - "/news/": "http://news.google.com" + "server": { + "port": 8080, + "webroot": "$config_dir", + "html5mode": "/index.html" }, - "headers": { - "X-Remote-User": "John Doe" + "proxy": { + "forward": { + "/channel": "https://www.youtube.com:443", + "/events/(.*)": "http://news.google.com/news/section?topic=$1", + "/news/": "http://news.google.com" + }, + "headers": { + "X-Remote-User": "John Doe" + } } }