From 820c2a2b514ee78a6aa8288bde7702c35426559e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 18:23:12 +0100 Subject: [PATCH 1/9] Updated to 0.21 --- conf/app-frontend.src | 4 ++-- conf/app.src | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/app-frontend.src b/conf/app-frontend.src index fdd0398..7b6bb9e 100644 --- a/conf/app-frontend.src +++ b/conf/app-frontend.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/0.20.1/download?job=build_front -SOURCE_SUM=22d774590b943fa6d64f634a7175b1d100089fe33734ce9889d050063ff50ce7 +SOURCE_URL=https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/0.21/download?job=build_front +SOURCE_SUM=d412b9bf0bb57d48332c6a6ab2f14c6d8e4dc792421ed4077f65550c58ecd754 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=false diff --git a/conf/app.src b/conf/app.src index 8f8baca..9e4d89d 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dev.funkwhale.audio/funkwhale/funkwhale/-/archive/0.20.1/funkwhale-0.20.1.tar.gz -SOURCE_SUM=4fe4c9069957060b3ab31cbc39f01d621aed01c39fc0177628fd96777fdffc7e +SOURCE_URL=https://dev.funkwhale.audio/funkwhale/funkwhale/-/archive/0.21/funkwhale-0.21.tar.gz +SOURCE_SUM=af4d5f9a339a47f5f8881e15dd3b60d4557d46569d1b1ec8b558b086ba101af8 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.bz2 SOURCE_IN_SUBDIR=true From f49302089d5111cc48356a7738c28ab332999002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 18:29:18 +0100 Subject: [PATCH 2/9] Update requirements --- .../extra_files/app/api/requirements/base.txt | 71 ++++++++++--------- 1 file changed, 39 insertions(+), 32 deletions(-) diff --git a/sources/extra_files/app/api/requirements/base.txt b/sources/extra_files/app/api/requirements/base.txt index 982cd3b..6e31f85 100644 --- a/sources/extra_files/app/api/requirements/base.txt +++ b/sources/extra_files/app/api/requirements/base.txt @@ -1,6 +1,7 @@ # Bleeding edge Django -django>=2.2.4,<2.3 - +django>=3.0.5,<3.1; python_version > '3.5' +django>=2.2.12,<3; python_version < '3.6' +setuptools>=36 # Configuration django-environ>=0.4,<0.5 @@ -9,71 +10,77 @@ Pillow>=6.2,<7 # For user registration, either via email or social # Well-built with regular release cycles! -django-allauth>=0.39,<0.40 +django-allauth>=0.41,<0.42 # Python-PostgreSQL Database Adapter psycopg2-binary>=2.8,<=2.9 # Time zones support -pytz==2019.1 +pytz==2019.3 # Redis support -django-redis>=4.10,<4.11 -redis>=3.2,<3.3 +django-redis>=4.11,<4.12 +redis>=3.4,<3.5 kombu>=4.5,<4.6 celery>=4.3,<4.4 # Your custom requirements go here -django-cors-headers>=2.5.3,<2.6 +django-cors-headers>=3.2,<3.3 musicbrainzngs==0.6 -djangorestframework>=3.10,<3.11 +djangorestframework>=3.11,<3.12 djangorestframework-jwt>=1.11,<1.12 -pendulum>=2,<3 +arrow>=0.15.5,<0.16 persisting-theory>=0.2,<0.3 -django-versatileimagefield>=1.10,<1.11 +django-versatileimagefield>=2.0,<2.1 django-filter>=2.1,<2.2 django-rest-auth>=0.9,<0.10 -ipython>=7,<8 -mutagen>=1.42,<1.43 +# XXX: remove when we drop support for python 3.5 +ipython>=7.10,<8; python_version > '3.5' +ipython>=7,<7.10; python_version < '3.6' +mutagen>=1.44,<1.45 pymemoize==1.0.3 -django-dynamic-preferences>=1.7.1,<1.8 +django-dynamic-preferences>=1.8.1,<1.9 raven>=6.10,<7 python-magic==0.4.15 -# XXX: until https://github.com/django/channels/issues/1240 is fixed -channels==2.1.6 -channels_redis>=2.3,<2.4 -daphne>=2.2,<2.3 -# uvicorn -gunicorn +channels>=2.4,<2.5 +# XXX: remove when we drop support for python 3.5 +channels_redis==2.2.1; python_version < '3.6' +channels_redis>=2.3.2,<2.4; python_version > '3.5' +uvicorn==0.8.6; python_version < '3.6' +uvicorn>=0.11.3,<0.12; python_version > '3.5' +gunicorn>=20.0.4,<20.1 -# YNH specific -uvicorn==0.8.6 -service_identity -# END YunoHost specific - -cryptography>=2,<3 +cryptography>=2.8,<3 # requests-http-signature==0.0.3 # clone until the branch is merged and released upstream git+https://github.com/EliotBerriot/requests-http-signature.git@signature-header-support -django-cleanup==3.2.0 +django-cleanup>=4,<4.1 requests>=2.22<2.23 pyOpenSSL>=19<20 # for LDAP authentication -python-ldap==3.2.0 -django-auth-ldap==1.7.0 -pydub==0.23.1 +python-ldap>=3.2.0,<3.3 +django-auth-ldap>=2.1.0,<2.2 +pydub>=0.23.1,<0.24 pyld==1.0.4 -aiohttp==3.5.4 +aiohttp>=3.6,<3.7 autobahn>=19.3.3 django-oauth-toolkit==1.2 -django-storages==1.7.1 +django-storages>=1.9.1,<1.10 boto3<3 -unicode-slugify +unicode-slugify==0.1.3 +django-cacheops==4.2 + +click>=7,<8 +service_identity==18.1.0 +markdown>=3.2,<4 +bleach>=3,<4 +feedparser==6.0.0b3 +watchdog==0.10.2 From 9ce50f0930e2261bb03274550bf799fb90ec5102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 19:01:25 +0100 Subject: [PATCH 3/9] Bump version and change embedding options --- conf/nginx.conf | 9 +++++++-- manifest.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e97c789..5096c28 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,3 @@ - location / { include __FINALPATH__/code/deploy/funkwhale_proxy.conf; # this is needed if you have file import via upload enabled @@ -17,8 +16,14 @@ location /front/ { } location /front/embed.html { - more_set_headers X-Frame-Options "ALLOW"; + add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; + add_header Referrer-Policy "strict-origin-when-cross-origin"; + add_header X-Frame-Options "ALLOW"; alias __FINALPATH__/code/front/dist/embed.html; + expires 30d; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + } location /federation/ { diff --git a/manifest.json b/manifest.json index 7989a4a..c3ce4c9 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "A modern, convivial and free music server" }, - "version": "0.20.1~ynh6", + "version": "0.21~ynh6", "url": "https://funkwhale.audio", "license": "AGPL-3.0-or-later", "maintainer": { From fafdf91ba8cd8e587f41a40af2dc5fcc46be1e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 19:08:11 +0100 Subject: [PATCH 4/9] Reset NGINX headers --- conf/nginx.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5096c28..e97c789 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,3 +1,4 @@ + location / { include __FINALPATH__/code/deploy/funkwhale_proxy.conf; # this is needed if you have file import via upload enabled @@ -16,14 +17,8 @@ location /front/ { } location /front/embed.html { - add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; - add_header Referrer-Policy "strict-origin-when-cross-origin"; - add_header X-Frame-Options "ALLOW"; + more_set_headers X-Frame-Options "ALLOW"; alias __FINALPATH__/code/front/dist/embed.html; - expires 30d; - add_header Pragma public; - add_header Cache-Control "public, must-revalidate, proxy-revalidate"; - } location /federation/ { From ac3832ddbf391c1eab975c487b321770fdade398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 19:18:16 +0100 Subject: [PATCH 5/9] Revert "Reset NGINX headers" This reverts commit fafdf91ba8cd8e587f41a40af2dc5fcc46be1e8b. --- conf/nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e97c789..5096c28 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,3 @@ - location / { include __FINALPATH__/code/deploy/funkwhale_proxy.conf; # this is needed if you have file import via upload enabled @@ -17,8 +16,14 @@ location /front/ { } location /front/embed.html { - more_set_headers X-Frame-Options "ALLOW"; + add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; + add_header Referrer-Policy "strict-origin-when-cross-origin"; + add_header X-Frame-Options "ALLOW"; alias __FINALPATH__/code/front/dist/embed.html; + expires 30d; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + } location /federation/ { From 63a9622f71d75b057ab2af06612eb9faa586a62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 19:39:11 +0100 Subject: [PATCH 6/9] Add service worker scope --- conf/nginx.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5096c28..6df184f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,16 +13,18 @@ location /front/ { more_set_headers Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; more_set_headers Referrer-Policy "strict-origin-when-cross-origin"; more_set_headers X-Frame-Options "SAMEORIGIN"; + more_set_headers Service-Worker-Allowed "/"; + } location /front/embed.html { - add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; - add_header Referrer-Policy "strict-origin-when-cross-origin"; - add_header X-Frame-Options "ALLOW"; + more_set_headers Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; + more_set_headers Referrer-Policy "strict-origin-when-cross-origin"; + more_set_headers X-Frame-Options "ALLOW"; alias __FINALPATH__/code/front/dist/embed.html; expires 30d; - add_header Pragma public; - add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + more_set_headers Pragma public; + more_set_headers Cache-Control "public, must-revalidate, proxy-revalidate"; } From 974f00049026356c004ba6ed5592a58050e6b25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 20:01:06 +0100 Subject: [PATCH 7/9] Change Manifest Version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index c3ce4c9..04962de 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "A modern, convivial and free music server" }, - "version": "0.21~ynh6", + "version": "0.21~ynh1", "url": "https://funkwhale.audio", "license": "AGPL-3.0-or-later", "maintainer": { From 93bf0d9a1ee5a3e3bb01ac9c3ffdc8d5d3bf1160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Sun, 17 May 2020 20:01:55 +0100 Subject: [PATCH 8/9] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d7fa0c..cc2755a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ A modern, convivial and free music server on YunoHost Installation requires a dedicated domain for now. I hope subpath installation will be possible in the future. -**Shipped version:** 0.20.1 (this is an Alpha version!) +**Shipped version:** 0.21 ## Screenshots From 4643e1513d8918ef03cd0e8e44e5af5c4a28304b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 18 May 2020 13:50:35 +0100 Subject: [PATCH 9/9] Updated manifest --- manifest.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 04962de..7581e79 100644 --- a/manifest.json +++ b/manifest.json @@ -9,8 +9,8 @@ "url": "https://funkwhale.audio", "license": "AGPL-3.0-or-later", "maintainer": { - "name": "Jean-Baptiste Holcroft", - "email": "jean-baptiste@holcroft.fr" + "name": "CiarĂ¡n Ainsworth", + "email": "ciaranainsworth@posteo.net" }, "requirements": { "yunohost": ">= 3.6" @@ -35,7 +35,7 @@ "ask": { "en": "Choose an admin user" }, - "example": "jibec" + "example": "sporiff" }, { "name": "is_public", @@ -44,7 +44,7 @@ "en": "Is it a public application?" }, "help": { - "en": "Allows non loggued users to access the user interface (mandatory for federation)" + "en": "Allows unauthenticated users to access the user interface (mandatory for federation)" }, "default": true }