diff options
| author | nemsia <nemsia@nemsia.org> | 2018-09-04 16:56:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-04 16:56:08 +0200 |
| commit | afdd8477990930e9221578e190e2c312e27a6cf9 (patch) | |
| tree | 5f7d4369c315624a208bcce7c5dcc018369585a2 | |
| parent | 512ed23dd18de4c300b2d2f3bc4aca8ec3b9be2a (diff) | |
| parent | c0f6ab9d6b2974e21cdc7e1256b33866013ee54b (diff) | |
| download | mastodon_ynh-afdd8477990930e9221578e190e2c312e27a6cf9.tar.gz mastodon_ynh-afdd8477990930e9221578e190e2c312e27a6cf9.tar.bz2 mastodon_ynh-afdd8477990930e9221578e190e2c312e27a6cf9.zip | |
Merge pull request #115 from anmol26s/master
Updated to 2.5.0 and added Nginx : CSP as suggested by @frju365
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | conf/app-mastodon.src | 4 | ||||
| -rw-r--r-- | conf/nginx.conf | 3 | ||||
| -rw-r--r-- | manifest.json | 2 | ||||
| -rw-r--r-- | scripts/install | 2 |
5 files changed, 7 insertions, 6 deletions
@@ -1,6 +1,6 @@ # Mastodon for YunoHost -[](https://github.com/YunoHost-Apps/mastodon_ynh/releases) +[](https://github.com/YunoHost-Apps/mastodon_ynh/releases) [](https://github.com/YunoHost-Apps/mastodon_ynh/milestones) [](https://github.com/YunoHost-Apps/mastodon_ynh#dependencies) [](https://raw.githubusercontent.com/YunoHost-Apps/mastodon_ynh/master/LICENSE) diff --git a/conf/app-mastodon.src b/conf/app-mastodon.src index a63adff..32aa8c6 100644 --- a/conf/app-mastodon.src +++ b/conf/app-mastodon.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/tootsuite/mastodon/archive/v2.4.5.tar.gz -SOURCE_SUM=9e8cf6a808c9c34b6b609e8acc86b91a02227580b61221d96a4b78560fcc592c +SOURCE_URL=https://github.com/tootsuite/mastodon/archive/v2.5.0.tar.gz +SOURCE_SUM=0b36693058647ab50fff7f1c0c678f0f2b2997908c542c488386e8e16beced74 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/nginx.conf b/conf/nginx.conf index a183a31..156d56d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,9 @@ # upload max size client_max_body_size 100M; +# Content Security Policy : security to avoid launching unsecure script +add_header Content-Security-Policy "default-src 'none'; font-src 'self'; media-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' blob: data:; connect-src 'self' wss://__DOMAIN__;"; + # add to v1.4 assets root __FINALPATH__/live/public; diff --git a/manifest.json b/manifest.json index 9e87449..248cf01 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "en": "Mastodon is a free, open-source social network.", "fr": "Mastodon est un réseau social gratuit et open source." }, - "version": "2.4.5", + "version": "2.5.0", "url": "https://github.com/tootsuite/mastodon", "license": "AGPL-3.0-or-later", "maintainer": { diff --git a/scripts/install b/scripts/install index 8c18517..cd9a1ce 100644 --- a/scripts/install +++ b/scripts/install @@ -274,8 +274,6 @@ ynh_app_setting_set "$app" unprotected_uris "/" # RELOAD NGINX #================================================= -ynh_replace_string "__PORT_WEB__" "$port_web" "../conf/nginx.conf" -ynh_replace_string "__PORT_STREAM__" "$port_stream" "../conf/nginx.conf" # Reload Nginx systemctl reload nginx |
