Browse Source

setup instructions WIP

master
Julian Steinwachs 9 years ago
parent
commit
706eb1d539
  1. 18
      README.md
  2. 7
      docker/run.sh
  3. 44
      docker/settings.json

18
README.md

@ -8,9 +8,23 @@ The main purpose of this project is to test the underlying Twister library [twis @@ -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

7
docker/run.sh

@ -0,0 +1,7 @@ @@ -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 ..

44
docker/settings.json

@ -1,15 +1,15 @@ @@ -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 @@ @@ -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 @@ @@ -203,8 +203,8 @@
},
{
"name": "dumppubkey",
"maxPerMinute": 999,
"maxPerMinutePerIP": 999
"maxPerMinute": 99999,
"maxPerMinutePerIP": 99999
},
{
"name": "testvector",
@ -293,8 +293,8 @@ @@ -293,8 +293,8 @@
},
{
"name": "getposts",
"maxPerMinute": 999,
"maxPerMinutePerIP": 999
"maxPerMinute": 99999,
"maxPerMinutePerIP": 99999
},
{
"name": "getdirectmsgs",
@ -318,8 +318,8 @@ @@ -318,8 +318,8 @@
},
{
"name": "follow",
"maxPerMinute": 999,
"maxPerMinutePerIP": 999
"maxPerMinute": 99999,
"maxPerMinutePerIP": 99999
},
{
"name": "unfollow",
@ -333,8 +333,8 @@ @@ -333,8 +333,8 @@
},
{
"name": "getlasthave",
"maxPerMinute": 999,
"maxPerMinutePerIP": 999
"maxPerMinute": 99999,
"maxPerMinutePerIP": 99999
},
{
"name": "getnumpieces",
@ -353,8 +353,8 @@ @@ -353,8 +353,8 @@
},
{
"name": "getspamposts",
"maxPerMinute": 999,
"maxPerMinutePerIP": 999
"maxPerMinute": 99999,
"maxPerMinutePerIP": 99999
},
{
"name": "torrentstatus",
@ -374,4 +374,4 @@ @@ -374,4 +374,4 @@
"invalidRequests": 30,
"forbiddenCalls": 30
}
}
}
Loading…
Cancel
Save