From 8c7990a7689872b8e38620cfe7e4262ec9733436c963bf35c6f0abb90b83330b Mon Sep 17 00:00:00 2001 From: Andrej Semen Date: Mon, 25 Jul 2016 11:45:04 +0000 Subject: [PATCH] Accepting request 415038 from home:asemen - enable HSTS to prevent the warning "The Strict-Transport-Security HTTP header is not configured" in admin-page - turn maintenance:mode off after upgrade OBS-URL: https://build.opensuse.org/request/show/415038 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=2 --- apache_secure_data | 4 ++++ nextcloud.changes | 7 +++++++ nextcloud.spec | 3 +++ 3 files changed, 14 insertions(+) diff --git a/apache_secure_data b/apache_secure_data index d86f38d..39d737a 100644 --- a/apache_secure_data +++ b/apache_secure_data @@ -7,6 +7,10 @@ Alias /nextcloud "@DATAPATH@/" Dav off + + Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" + + SetEnv HOME @DATAPATH@ SetEnv HTTP_HOME @DATAPATH@ diff --git a/nextcloud.changes b/nextcloud.changes index 6f37d23..3b39955 100644 --- a/nextcloud.changes +++ b/nextcloud.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jul 23 12:33:00 UTC 2016 - ecsos@opensuse.org + +- enable HSTS to prevent the warning "The Strict-Transport-Security + HTTP header is not configured" in admin-page +- turn maintenance:mode off after upgrade + ------------------------------------------------------------------- Thu Jul 21 15:17:28 CEST 2016 - asemen@suse.de diff --git a/nextcloud.spec b/nextcloud.spec index b968516..b4f2015 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -196,7 +196,10 @@ if [ -s /tmp/apache_stopped_during_nextcloud_install ]; then %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} service httpd start %endif +echo "%{name}: occ maintenance:mode --off" +su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true fi + rm -f /tmp/apache_stopped_during_nextcloud_install %clean