From 706eb1d539b6475c148f503eb85a60def0137bf0 Mon Sep 17 00:00:00 2001 From: Julian Steinwachs Date: Mon, 29 Feb 2016 20:47:53 +0100 Subject: [PATCH] setup instructions WIP --- README.md | 18 ++++++++++++++++-- docker/run.sh | 7 +++++++ docker/settings.json | 44 ++++++++++++++++++++++---------------------- 3 files changed, 45 insertions(+), 24 deletions(-) create mode 100755 docker/run.sh diff --git a/README.md b/README.md index 7b8f9c8..03e81d7 100755 --- a/README.md +++ b/README.md @@ -8,9 +8,23 @@ The main purpose of this project is to test the underlying Twister library [twis * User Search * Trending Hashtags -* Profile Editing * Direct Messages -* Import/Create Account + +## Setup as hosted by a publix twister proxy + +apt-get update +apt-get install -y git curl nodejs nodejs-legacy npm +curl -sSL https://get.docker.com/ | sh +git clone https://github.com/miguelfreitas/twister-core.git + +mkdir ~/.twister +echo -e "rpcuser=user\nrpcpassword=pwd\nhtmldir=~/twister-react" > ~/.twister/twister.conf +chmod 600 ~/.twister/twister.conf + +git clone https://github.com/Tschaul/twister-react.git +git clone https://github.com/digital-dreamer/twister-proxy.git + +npm install -g browserify react-tools forever ## Screenshots diff --git a/docker/run.sh b/docker/run.sh new file mode 100755 index 0000000..2eecf7c --- /dev/null +++ b/docker/run.sh @@ -0,0 +1,7 @@ +cd twister-core +docker run -d -p 28332:28332 -v /root/.twister:/root/.twister -v /root/twister-react:/root/twister-react miguelfreitas/twister -htmldir=/root/twister-react -rpcthreads=100 +cd .. + +cd twister-proxy +forever start twister-proxy.js & +cd .. diff --git a/docker/settings.json b/docker/settings.json index 271df9a..e619e72 100644 --- a/docker/settings.json +++ b/docker/settings.json @@ -1,15 +1,15 @@ { "Server": { - "ssl_key_file": "/certs/privkey.pem", - "ssl_certificate_file": "/ecerts/cert.pem", - "ssl_chain_file": "/certs/chain.pem", - "ssl_fullchain_file": "/certs/fullchain.pem", + "ssl_key_file": "/etc/letsencrypt/live/example.com/privkey.pem", + "ssl_certificate_file": "/etc/letsencrypt/live/example.com/cert.pem", + "ssl_chain_file": "/etc/letsencrypt/live/example.com/chain.pem", + "ssl_fullchain_file": "/etc/letsencrypt/live/example.com/fullchain.pem", "enable_https": true, + "https_port": 443, "http_port": 0 }, - "RPC": { @@ -43,18 +43,18 @@ }, { "name": "dhtget", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "listusernamespartial", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "gettrendinghashtags", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "stop", @@ -203,8 +203,8 @@ }, { "name": "dumppubkey", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "testvector", @@ -293,8 +293,8 @@ }, { "name": "getposts", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "getdirectmsgs", @@ -318,8 +318,8 @@ }, { "name": "follow", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "unfollow", @@ -333,8 +333,8 @@ }, { "name": "getlasthave", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "getnumpieces", @@ -353,8 +353,8 @@ }, { "name": "getspamposts", - "maxPerMinute": 999, - "maxPerMinutePerIP": 999 + "maxPerMinute": 99999, + "maxPerMinutePerIP": 99999 }, { "name": "torrentstatus", @@ -374,4 +374,4 @@ "invalidRequests": 30, "forbiddenCalls": 30 } -} +} \ No newline at end of file