mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
Clean up transfer-ci script
This commit is contained in:
parent
279f460199
commit
4120e227c9
1 changed files with 18 additions and 12 deletions
|
|
@ -22,6 +22,7 @@ $SUDO apt-get install -y cmake libssl-dev screen rtorrent mktorrent ssl-cert ca-
|
||||||
|
|
||||||
git clone https://github.com/anacrolix/torrent.git gotorrent
|
git clone https://github.com/anacrolix/torrent.git gotorrent
|
||||||
cd gotorrent
|
cd gotorrent
|
||||||
|
# Use commit known to work
|
||||||
git checkout 16176b762e4a840fc5dfe3b1dfd2d6fa853b68d7
|
git checkout 16176b762e4a840fc5dfe3b1dfd2d6fa853b68d7
|
||||||
go build -o $HOME/gotorrent ./cmd/torrent
|
go build -o $HOME/gotorrent ./cmd/torrent
|
||||||
cd ..
|
cd ..
|
||||||
|
|
@ -51,12 +52,22 @@ $SUDO update-ca-certificates
|
||||||
|
|
||||||
cargo build --bin aquatic
|
cargo build --bin aquatic
|
||||||
|
|
||||||
|
# UDP
|
||||||
|
echo "
|
||||||
|
log_level = 'debug'
|
||||||
|
|
||||||
|
[network]
|
||||||
|
address = '127.0.0.1:3000'" > udp.toml
|
||||||
|
./target/debug/aquatic udp -c udp.toml > "$HOME/udp.log" 2>&1 &
|
||||||
|
|
||||||
|
# HTTP
|
||||||
echo "log_level = 'debug'
|
echo "log_level = 'debug'
|
||||||
|
|
||||||
[network]
|
[network]
|
||||||
address = '127.0.0.1:3004'" > http.toml
|
address = '127.0.0.1:3004'" > http.toml
|
||||||
./target/debug/aquatic http -c http.toml > "$HOME/http.log" 2>&1 &
|
./target/debug/aquatic http -c http.toml > "$HOME/http.log" 2>&1 &
|
||||||
|
|
||||||
|
# HTTP with TLS
|
||||||
echo "log_level = 'debug'
|
echo "log_level = 'debug'
|
||||||
|
|
||||||
[network]
|
[network]
|
||||||
|
|
@ -67,13 +78,16 @@ tls_private_key_path = './key.pk8'
|
||||||
" > tls.toml
|
" > tls.toml
|
||||||
./target/debug/aquatic http -c tls.toml > "$HOME/tls.log" 2>&1 &
|
./target/debug/aquatic http -c tls.toml > "$HOME/tls.log" 2>&1 &
|
||||||
|
|
||||||
echo "
|
# WebTorrent
|
||||||
log_level = 'debug'
|
echo "log_level = 'debug'
|
||||||
|
|
||||||
[network]
|
[network]
|
||||||
address = '127.0.0.1:3000'" > udp.toml
|
address = '127.0.0.1:3003'
|
||||||
./target/debug/aquatic udp -c udp.toml > "$HOME/udp.log" 2>&1 &
|
enable_http_health_checks = true
|
||||||
|
" > ws.toml
|
||||||
|
./target/debug/aquatic ws -c ws.toml > "$HOME/ws.log" 2>&1 &
|
||||||
|
|
||||||
|
# WebTorrent with TLS
|
||||||
echo "log_level = 'debug'
|
echo "log_level = 'debug'
|
||||||
|
|
||||||
[network]
|
[network]
|
||||||
|
|
@ -84,14 +98,6 @@ tls_private_key_path = './key.pk8'
|
||||||
" > ws-tls.toml
|
" > ws-tls.toml
|
||||||
./target/debug/aquatic ws -c ws-tls.toml > "$HOME/ws-tls.log" 2>&1 &
|
./target/debug/aquatic ws -c ws-tls.toml > "$HOME/ws-tls.log" 2>&1 &
|
||||||
|
|
||||||
echo "log_level = 'debug'
|
|
||||||
|
|
||||||
[network]
|
|
||||||
address = '127.0.0.1:3003'
|
|
||||||
enable_http_health_checks = true
|
|
||||||
" > ws.toml
|
|
||||||
./target/debug/aquatic ws -c ws.toml > "$HOME/ws.log" 2>&1 &
|
|
||||||
|
|
||||||
# Setup directories
|
# Setup directories
|
||||||
|
|
||||||
cd "$HOME"
|
cd "$HOME"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue