Browse Source

setup instructions WIP

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

18
README.md

@ -8,9 +8,23 @@ The main purpose of this project is to test the underlying Twister library [twis
* User Search * User Search
* Trending Hashtags * Trending Hashtags
* Profile Editing
* Direct Messages * 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 ## Screenshots

7
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 ..

42
docker/settings.json

@ -1,16 +1,16 @@
{ {
"Server": "Server":
{ {
"ssl_key_file": "/certs/privkey.pem", "ssl_key_file": "/etc/letsencrypt/live/example.com/privkey.pem",
"ssl_certificate_file": "/ecerts/cert.pem", "ssl_certificate_file": "/etc/letsencrypt/live/example.com/cert.pem",
"ssl_chain_file": "/certs/chain.pem", "ssl_chain_file": "/etc/letsencrypt/live/example.com/chain.pem",
"ssl_fullchain_file": "/certs/fullchain.pem", "ssl_fullchain_file": "/etc/letsencrypt/live/example.com/fullchain.pem",
"enable_https": true, "enable_https": true,
"https_port": 443, "https_port": 443,
"http_port": 0 "http_port": 0
}, },
"RPC": "RPC":
{ {
"host": "localhost", "host": "localhost",
@ -43,18 +43,18 @@
}, },
{ {
"name": "dhtget", "name": "dhtget",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "listusernamespartial", "name": "listusernamespartial",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "gettrendinghashtags", "name": "gettrendinghashtags",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "stop", "name": "stop",
@ -203,8 +203,8 @@
}, },
{ {
"name": "dumppubkey", "name": "dumppubkey",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "testvector", "name": "testvector",
@ -293,8 +293,8 @@
}, },
{ {
"name": "getposts", "name": "getposts",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "getdirectmsgs", "name": "getdirectmsgs",
@ -318,8 +318,8 @@
}, },
{ {
"name": "follow", "name": "follow",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "unfollow", "name": "unfollow",
@ -333,8 +333,8 @@
}, },
{ {
"name": "getlasthave", "name": "getlasthave",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "getnumpieces", "name": "getnumpieces",
@ -353,8 +353,8 @@
}, },
{ {
"name": "getspamposts", "name": "getspamposts",
"maxPerMinute": 999, "maxPerMinute": 99999,
"maxPerMinutePerIP": 999 "maxPerMinutePerIP": 99999
}, },
{ {
"name": "torrentstatus", "name": "torrentstatus",

Loading…
Cancel
Save