|
|
@ -29,6 +29,11 @@ systemctl restart apache2
|
|
|
|
# Set up certbot:
|
|
|
|
# Set up certbot:
|
|
|
|
certbot
|
|
|
|
certbot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# test it:
|
|
|
|
|
|
|
|
echo rad.forksand.com > /var/www/html/index.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://rad.forksand.com
|
|
|
|
|
|
|
|
|
|
|
|
# Configure apache2 https proxy
|
|
|
|
# Configure apache2 https proxy
|
|
|
|
|
|
|
|
|
|
|
|
$ cat /etc/apache2/sites-enabled/000-default-le-ssl.conf
|
|
|
|
$ cat /etc/apache2/sites-enabled/000-default-le-ssl.conf
|
|
|
@ -61,11 +66,15 @@ EOF
|
|
|
|
# Install rustup
|
|
|
|
# Install rustup
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
|
|
|
|
|
|
|
|
# Install yarn
|
|
|
|
# Install yarn
|
|
|
|
mkdir -p ~/bin/
|
|
|
|
mkdir -p ~/bin/
|
|
|
|
cd ~/bin/
|
|
|
|
cd ~/bin/
|
|
|
|
ln -s /usr/bin/yarnpkg yarn
|
|
|
|
ln -s /usr/bin/yarnpkg yarn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
which yarn
|
|
|
|
|
|
|
|
|
|
|
|
# Clone radicle
|
|
|
|
# Clone radicle
|
|
|
|
cd ~/devel/
|
|
|
|
cd ~/devel/
|
|
|
|
git clone https://github.com/radicle-dev/radicle-bins.git
|
|
|
|
git clone https://github.com/radicle-dev/radicle-bins.git
|
|
|
@ -79,17 +88,14 @@ yarn build
|
|
|
|
mkdir -p ~/.radicle-seed
|
|
|
|
mkdir -p ~/.radicle-seed
|
|
|
|
chmod og-rwx ~/.radicle-seed
|
|
|
|
chmod og-rwx ~/.radicle-seed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# add to ~/.bashrc
|
|
|
|
|
|
|
|
export PATH="$HOME/.radicale/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
|
|
# Create key
|
|
|
|
# Create key
|
|
|
|
cargo run -p radicle-keyutil -- --filename ~/.radicle-seed/secret.key
|
|
|
|
cargo run -p radicle-keyutil -- --filename ~/.radicle-seed/secret.key
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run the thing:
|
|
|
|
# Run the thing:
|
|
|
|
cd /home/jebba/devel/radicle-bins/seed/ui
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# example:
|
|
|
|
|
|
|
|
# hyy5s7ysg96fqa91gbe7h38yddh4mkokft7y4htt8szt9e17sxoe3h@seed.my.org:12345
|
|
|
|
|
|
|
|
# rad.forksand.com:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat >>
|
|
|
|
cat >>
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
@ -97,7 +103,10 @@ set -x
|
|
|
|
|
|
|
|
|
|
|
|
cd ~/devel/radicle-bins/
|
|
|
|
cd ~/devel/radicle-bins/
|
|
|
|
|
|
|
|
|
|
|
|
cargo run -p radicle-seed-node --release -- \
|
|
|
|
cargo run \
|
|
|
|
|
|
|
|
--verbose \
|
|
|
|
|
|
|
|
-p radicle-seed-node --release -- \
|
|
|
|
|
|
|
|
--log debug \
|
|
|
|
--root ~/.radicle-seed \
|
|
|
|
--root ~/.radicle-seed \
|
|
|
|
--peer-listen 0.0.0.0:12345 \
|
|
|
|
--peer-listen 0.0.0.0:12345 \
|
|
|
|
--http-listen 0.0.0.0:8080 \
|
|
|
|
--http-listen 0.0.0.0:8080 \
|
|
|
@ -107,12 +116,15 @@ cargo run -p radicle-seed-node --release -- \
|
|
|
|
< ~/.radicle-seed/secret.key
|
|
|
|
< ~/.radicle-seed/secret.key
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Dev mode
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
# To start a local dev server for preview, run: `yarn run dev`, then point your
|
|
|
|
# To start a local dev server for preview, run: `yarn run dev`, then point your
|
|
|
|
# browser at: http://localhost:5000.
|
|
|
|
# browser at: http://localhost:5000.
|
|
|
|
yarn run dev
|
|
|
|
yarn run dev
|
|
|
|
|
|
|
|
# Dev tunnel
|
|
|
|
# Tunnel
|
|
|
|
|
|
|
|
ssh -N -C -L 5000:localhost:5000 rad.forksand.com
|
|
|
|
ssh -N -C -L 5000:localhost:5000 rad.forksand.com
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Peer to Peer
|
|
|
|
|
|
|
|
# p2p nodes example:
|
|
|
|
|
|
|
|
# hyy5s7ysg96fqa91gbe7h38yddh4mkokft7y4htt8szt9e17sxoe3h@seed.my.org:12345
|
|
|
|
|
|
|
|
# abc123@rad.forksand.com:12345
|
|
|
|
|
|
|
|
|
|
|
|