committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 134 additions and 98 deletions
-
2README.md
-
79conf/config.json
-
9conf/config_install.json
-
7conf/nginx.conf
-
1conf/php-fpm.conf
-
4manifest.json
-
2scripts/_common.sh
-
14scripts/backup
-
20scripts/install
-
20scripts/restore
-
4scripts/upgrade
-
4scripts/upgrade.d/upgrade.last.sh
-
0sources/patches/app-00-add-logout_url-conf.patch
-
66sources/patches/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch
@ -1,38 +1,41 @@ |
|||||
{ |
|
||||
"system": { |
|
||||
"datadirectory": "#DATADIR#", |
|
||||
"trusted_domains": [ |
|
||||
"localhost", |
|
||||
"#DOMAIN#" |
|
||||
], |
|
||||
"updatechecker": false, |
|
||||
"memcache.local": "\\OC\\Memcache\\APCu", |
|
||||
"integrity.check.disabled": true |
|
||||
}, |
|
||||
"apps": { |
|
||||
"user_ldap": { |
|
||||
"ldap_base": "dc=yunohost,dc=org", |
|
||||
"ldap_base_groups": "ou=groups,dc=yunohost,dc=org", |
|
||||
"ldap_base_users": "ou=users,dc=yunohost,dc=org", |
|
||||
"ldap_cache_ttl": "600", |
|
||||
"ldap_configuration_active": "1", |
|
||||
"ldap_display_name": "displayname", |
|
||||
"ldap_email_attr": "mail", |
|
||||
"ldap_expert_username_attr": "uid", |
|
||||
"ldap_group_display_name": "cn", |
|
||||
"ldap_group_filter": "objectClass=posixGroup", |
|
||||
"ldap_group_filter_mode": "0", |
|
||||
"ldap_groupfilter_objectclass": "posixGroup", |
|
||||
"ldap_host": "localhost", |
|
||||
"ldap_login_filter": "(&(|(objectclass=posixAccount))(uid=%uid))", |
|
||||
"ldap_login_filter_mode": "0", |
|
||||
"ldap_port": "389", |
|
||||
"ldap_quota_attr": "userquota", |
|
||||
"ldap_tls": "0", |
|
||||
"ldap_user_display_name": "cn", |
|
||||
"ldap_user_filter_mode": "0", |
|
||||
"ldap_userfilter_objectclass": "posixAccount", |
|
||||
"ldap_userlist_filter": "objectclass=posixAccount" |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
{ |
||||
|
"system": { |
||||
|
"updatechecker": false, |
||||
|
"memcache.local": "\\OC\\Memcache\\APCu", |
||||
|
"integrity.check.disabled": true, |
||||
|
"filelocking.enabled": true, |
||||
|
"memcache.locking": "\\OC\\Memcache\\Redis", |
||||
|
"redis": { |
||||
|
"host": "localhost", |
||||
|
"port": "6379", |
||||
|
"timeout": "0.0", |
||||
|
"password": "" |
||||
|
} |
||||
|
}, |
||||
|
"apps": { |
||||
|
"user_ldap": { |
||||
|
"ldap_base": "dc=yunohost,dc=org", |
||||
|
"ldap_base_groups": "ou=groups,dc=yunohost,dc=org", |
||||
|
"ldap_base_users": "ou=users,dc=yunohost,dc=org", |
||||
|
"ldap_cache_ttl": "600", |
||||
|
"ldap_configuration_active": "1", |
||||
|
"ldap_display_name": "displayname", |
||||
|
"ldap_email_attr": "mail", |
||||
|
"ldap_expert_username_attr": "uid", |
||||
|
"ldap_group_display_name": "cn", |
||||
|
"ldap_group_filter": "objectClass=posixGroup", |
||||
|
"ldap_group_filter_mode": "0", |
||||
|
"ldap_groupfilter_objectclass": "posixGroup", |
||||
|
"ldap_host": "localhost", |
||||
|
"ldap_login_filter": "(&(|(objectclass=posixAccount))(uid=%uid))", |
||||
|
"ldap_login_filter_mode": "0", |
||||
|
"ldap_port": "389", |
||||
|
"ldap_quota_attr": "userquota", |
||||
|
"ldap_tls": "0", |
||||
|
"ldap_user_display_name": "cn", |
||||
|
"ldap_user_filter_mode": "0", |
||||
|
"ldap_userfilter_objectclass": "posixAccount", |
||||
|
"ldap_userlist_filter": "objectclass=posixAccount" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,9 @@ |
|||||
|
{ |
||||
|
"system": { |
||||
|
"datadirectory": "#DATADIR#", |
||||
|
"trusted_domains": [ |
||||
|
"localhost", |
||||
|
"#DOMAIN#" |
||||
|
] |
||||
|
} |
||||
|
} |
||||
@ -1,7 +1,7 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
# Last available nextcloud version |
# Last available nextcloud version |
||||
next_version="12.0.2" |
|
||||
|
next_version="12.0.5" |
||||
|
|
||||
# Nextcloud tarball checksum sha256 |
# Nextcloud tarball checksum sha256 |
||||
nextcloud_source_sha256="eb34d6cb9f55ee84bf2ad847b4b08cdb925321848ffa2264a9b1566e7b21a17c" |
|
||||
|
nextcloud_source_sha256="c8be29ace6821079e881818266fe49d28812b5aa0c7d2e76511173d48828ca43" |
||||
@ -1,33 +1,33 @@ |
|||||
lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php | 4 ++++ |
|
||||
lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php | 3 ++- |
|
||||
2 files changed, 6 insertions(+), 1 deletion(-) |
|
||||
|
|
||||
diff --git a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
|
|
||||
index 85ae127f5f..91618a09fc 100644
|
|
||||
--- a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
|
|
||||
+++ b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
|
|
||||
@@ -65,6 +65,10 @@ class ContentSecurityPolicyNonceManager {
|
|
||||
* @return bool |
|
||||
*/ |
|
||||
public function browserSupportsCspV3() { |
|
||||
+ // YunoHost patch: disable CSPv3 nonces to:
|
|
||||
+ // - avoid white page on first login from YunoHost portal
|
|
||||
+ // - allow YunoHost tile display
|
|
||||
+ return false;
|
|
||||
$browserWhitelist = [ |
|
||||
Request::USER_AGENT_CHROME, |
|
||||
// Firefox 45+ |
|
||||
diff --git a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
|
|
||||
index 64d4eb6e5d..59d5885620 100644
|
|
||||
--- a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
|
|
||||
+++ b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
|
|
||||
@@ -377,7 +377,8 @@ class EmptyContentSecurityPolicy {
|
|
||||
|
|
||||
if(!empty($this->allowedFontDomains)) { |
|
||||
$policy .= 'font-src ' . implode(' ', $this->allowedFontDomains); |
|
||||
- $policy .= ';';
|
|
||||
+ // YunoHost patch: extend font-src to load data fonts embedded in YunoHost tile script
|
|
||||
+ $policy .= ' data:;';
|
|
||||
} |
|
||||
|
|
||||
if(!empty($this->allowedConnectDomains)) { |
|
||||
|
lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php | 4 ++++ |
||||
|
lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php | 3 ++- |
||||
|
2 files changed, 6 insertions(+), 1 deletion(-) |
||||
|
|
||||
|
diff --git a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
|
||||
|
index 85ae127f5f..91618a09fc 100644
|
||||
|
--- a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
|
||||
|
+++ b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
|
||||
|
@@ -65,6 +65,10 @@ class ContentSecurityPolicyNonceManager {
|
||||
|
* @return bool |
||||
|
*/ |
||||
|
public function browserSupportsCspV3() { |
||||
|
+ // YunoHost patch: disable CSPv3 nonces to:
|
||||
|
+ // - avoid white page on first login from YunoHost portal
|
||||
|
+ // - allow YunoHost tile display
|
||||
|
+ return false;
|
||||
|
$browserWhitelist = [ |
||||
|
Request::USER_AGENT_CHROME, |
||||
|
// Firefox 45+ |
||||
|
diff --git a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
|
||||
|
index 64d4eb6e5d..59d5885620 100644
|
||||
|
--- a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
|
||||
|
+++ b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
|
||||
|
@@ -377,7 +377,8 @@ class EmptyContentSecurityPolicy {
|
||||
|
|
||||
|
if(!empty($this->allowedFontDomains)) { |
||||
|
$policy .= 'font-src ' . implode(' ', $this->allowedFontDomains); |
||||
|
- $policy .= ';';
|
||||
|
+ // YunoHost patch: extend font-src to load data fonts embedded in YunoHost tile script
|
||||
|
+ $policy .= ' data:;';
|
||||
|
} |
||||
|
|
||||
|
if(!empty($this->allowedConnectDomains)) { |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue