Skip to content
Snippets Groups Projects
Commit e55f86d2 authored by Bob Mottram's avatar Bob Mottram
Browse files

peertube v1.2.0-rc.1

parent be0bb7f9
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ NOT_ON_ARM=1
PEERTUBE_DOMAIN_NAME=
PEERTUBE_CODE=
PEERTUBE_VERSION='v1.0.0'
PEERTUBE_VERSION='v1.2.0-rc.1'
PEERTUBE_DOWNLOAD_FILENAME="peertube-${PEERTUBE_VERSION}"
PEERTUBE_DOWNLOAD="https://github.com/Chocobozzz/PeerTube/releases/download/${PEERTUBE_VERSION}/${PEERTUBE_DOWNLOAD_FILENAME}.tar.xz"
PEERTUBE_ONION_PORT=8136
......@@ -579,6 +579,15 @@ function upgrade_peertube {
peertube_database_extensions
if ! grep -q 'tmp: ' "${PEERTUBE_CONFIG_FILE}"; then
sed -i "/storage:/a tmp: '$PEERTUBE_DIR/storage/tmp/'" "${PEERTUBE_CONFIG_FILE}"
sed -i 's|tmp:| tmp:|g' "${PEERTUBE_CONFIG_FILE}"
fi
if ! grep -q 'redundancy: ' "${PEERTUBE_CONFIG_FILE}"; then
sed -i "/storage:/a redundancy: '$PEERTUBE_DIR/storage/videos/'" "${PEERTUBE_CONFIG_FILE}"
sed -i 's|redundancy:| redundancy:|g' "${PEERTUBE_CONFIG_FILE}"
fi
systemctl start peertube
set_completion_param "peertube version" "$PEERTUBE_VERSION"
......@@ -761,7 +770,7 @@ function peertube_setup_web {
echo ' }';
echo '';
echo ' # Bypass PeerTube for performance reasons. Could be removed';
echo ' location /static/webseed {';
echo ' location ~ ^/static/(webseed|redundancy)/ {';
echo ' # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client';
echo ' limit_rate 800k;';
echo '';
......@@ -834,7 +843,7 @@ function peertube_setup_web {
echo ' }';
echo '';
echo ' # Bypass PeerTube for performance reasons. Could be removed';
echo ' location /static/webseed {';
echo ' location ~ ^/static/(webseed|redundancy)/ {';
echo ' # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client';
echo ' limit_rate 800k;';
echo '';
......@@ -965,8 +974,10 @@ function peertube_create_config {
echo ' blacklist: []';
echo '';
echo 'storage:';
echo " tmp: '$PEERTUBE_DIR/storage/tmp/'";
echo " avatars: '$PEERTUBE_DIR/storage/avatars/'";
echo " videos: '$PEERTUBE_DIR/storage/videos/'";
echo " redundancy: '$PEERTUBE_DIR/storage/videos/'";
echo " logs: '$PEERTUBE_DIR/storage/logs/'";
echo " previews: '$PEERTUBE_DIR/storage/previews/'";
echo " thumbnails: '$PEERTUBE_DIR/storage/thumbnails/'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment