forked from coop-cloud/peertube
Compare commits
6 Commits
1.0.0+v3.4
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
2e0cf00740
|
|||
| 751d86dcc7 | |||
| 73f080adbc | |||
| b99671c2bf | |||
| d1b297c5a6 | |||
|
319707b52c
|
4
abra.sh
4
abra.sh
@ -1,7 +1,7 @@
|
||||
# shellcheck disable=SC2034,SC2145
|
||||
|
||||
export NGINX_CONFIG_VERSION=v3
|
||||
export APP_ENTRYPOINT_VERSION=v4
|
||||
export NGINX_CONFIG_VERSION=v4
|
||||
export APP_ENTRYPOINT_VERSION=v5
|
||||
|
||||
sub_npm() {
|
||||
abra__service_="app"
|
||||
|
||||
@ -35,7 +35,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
|
||||
app:
|
||||
image: chocobozzz/peertube:v3.4.1-buster
|
||||
image: chocobozzz/peertube:v4.2.2-bullseye
|
||||
environment:
|
||||
- PEERTUBE_ADMIN_EMAIL
|
||||
- PEERTUBE_CONTACT_FORM_ENABLED
|
||||
@ -74,7 +74,7 @@ services:
|
||||
- internal
|
||||
deploy:
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+v3.4.1-buster"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.2.0+v4.2.2-bullseye"
|
||||
|
||||
db:
|
||||
image: postgres:10-alpine
|
||||
|
||||
@ -32,6 +32,7 @@ file_env "PEERTUBE_SMTP_PASSWORD"
|
||||
|
||||
{{ if eq (env "PEERTUBE_LIVE_CHAT_ENABLED") "1" }}
|
||||
apt -y update && apt install -y prosody && apt -y clean
|
||||
mkdir -p /run/prosody && chown prosody:prosody /run/prosody
|
||||
{{ end }}
|
||||
|
||||
# Copy the client files over to a named volume
|
||||
|
||||
@ -46,7 +46,7 @@ http {
|
||||
try_files /dev/null @api;
|
||||
}
|
||||
|
||||
location = /api/v1/videos/upload {
|
||||
location ~ ^/api/v1/videos/(upload|([^/]+/editor/edit))$ {
|
||||
limit_except POST HEAD { deny all; }
|
||||
|
||||
# This is the maximum upload size, which roughly matches the maximum size of a video file.
|
||||
@ -133,8 +133,8 @@ http {
|
||||
|
||||
# Bypass PeerTube for performance reasons. Optional.
|
||||
# Should be consistent with client-overrides assets list in /server/controllers/client.ts
|
||||
location ~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png))$ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year
|
||||
location ~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png|default-playlist\.jpg|default-avatar-account\.png|default-avatar-video-channel\.png))$ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year
|
||||
|
||||
root /var/www/peertube;
|
||||
|
||||
|
||||
27
release/2.0.0+v4.0.0-bullseye
Normal file
27
release/2.0.0+v4.0.0-bullseye
Normal file
@ -0,0 +1,27 @@
|
||||
This major release went fairly smoothly, there are 2 post-migration steps which
|
||||
are listed on the release notes:
|
||||
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v4.0.0
|
||||
|
||||
However, you need to do the second part first, adding additional config options
|
||||
and/or changing the old ones. When you try to run the data migration, it'll
|
||||
error out telling you which one you need to deal with, so that will help to guide.
|
||||
|
||||
Here's what I did:
|
||||
|
||||
abra app run tv.lumbung.space app bash
|
||||
apt update && apt install vim
|
||||
vi /config/production.yml # change options
|
||||
|
||||
Then, in another shell:
|
||||
|
||||
abra app run --user peertube tv.lumbung.space app bash
|
||||
|
||||
export NODE_CONFIG_DIR=/config
|
||||
export NODE_ENV=production
|
||||
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
|
||||
node dist/scripts/migrations/peertube-4.0.js
|
||||
|
||||
After, this I ran a restart of the app service, and things went fine.
|
||||
|
||||
abra app restart tv.lumbung.space app
|
||||
Reference in New Issue
Block a user