Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-09-25 21:57:57 +0300
committernachoparker <nacho@ownyourbits.com>2021-09-25 21:58:03 +0300
commit6ad96eddd3c2893ef9b75b6d4e0a927dab5c793f (patch)
tree281aae9c13df7db77c0108f933201c2f0fc5dd3a
parenteef7b096bf59a8067310d5f2473c6551938f56db (diff)
nc-https:only fix infinite redirects behind proxyv1.39.14
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--bin/ncp/CONFIG/nc-httpsonly.sh2
-rw-r--r--changelog.md4
-rw-r--r--updates/1.40.0.sh4
3 files changed, 8 insertions, 2 deletions
diff --git a/bin/ncp/CONFIG/nc-httpsonly.sh b/bin/ncp/CONFIG/nc-httpsonly.sh
index 7c86ca94..a70bac03 100644
--- a/bin/ncp/CONFIG/nc-httpsonly.sh
+++ b/bin/ncp/CONFIG/nc-httpsonly.sh
@@ -12,7 +12,7 @@
configure()
{
[[ -f /.ncp-image ]] && return 0
- [[ $ACTIVE == "no" ]] && local opt=Off proto=https || local opt=On proto=http
+ [[ $ACTIVE == "no" ]] && local opt=Off proto=http || local opt=On proto=https
sed -i "s|RewriteEngine .*|RewriteEngine $opt|" /etc/apache2/sites-available/000-default.conf
ncc config:system:set overwriteprotocol --value="${proto}"
apachectl -k graceful
diff --git a/changelog.md b/changelog.md
index 9583702e..50c33915 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v1.39.13](https://github.com/nextcloud/nextcloudpi/commit/6dbc76e) (2021-09-23) ncp-web: make letsencrypt detection more robust
+[v1.39.14](https://github.com/nextcloud/nextcloudpi/commit/077c3bc) (2021-09-25) nc-https:only fix infinite redirects behind proxy
+
+[v1.39.13](https://github.com/nextcloud/nextcloudpi/commit/eef7b09) (2021-09-23) ncp-web: make letsencrypt detection more robust
[v1.39.12](https://github.com/nextcloud/nextcloudpi/commit/814569b) (2021-09-22) fix junk in overwrite.cli.url because of Redis not being yet ready
diff --git a/updates/1.40.0.sh b/updates/1.40.0.sh
index cf4775a3..139934ed 100644
--- a/updates/1.40.0.sh
+++ b/updates/1.40.0.sh
@@ -31,6 +31,10 @@ install_app nc-restore
</Directory>
</VirtualHost>
EOF
+ apachectl -k graceful
+
+# fix issue with reverse proxy infinite redirections
+run_app nc-httpsonly
# docker images only
[[ -f /.docker-image ]] && {