Skip to content

Commit 6ad96ed

Browse files
committed
nc-https:only fix infinite redirects behind proxy
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent eef7b09 commit 6ad96ed

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

bin/ncp/CONFIG/nc-httpsonly.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
configure()
1313
{
1414
[[ -f /.ncp-image ]] && return 0
15-
[[ $ACTIVE == "no" ]] && local opt=Off proto=https || local opt=On proto=http
15+
[[ $ACTIVE == "no" ]] && local opt=Off proto=http || local opt=On proto=https
1616
sed -i "s|RewriteEngine .*|RewriteEngine $opt|" /etc/apache2/sites-available/000-default.conf
1717
ncc config:system:set overwriteprotocol --value="${proto}"
1818
apachectl -k graceful

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v1.39.13](https://github.com/nextcloud/nextcloudpi/commit/6dbc76e) (2021-09-23) ncp-web: make letsencrypt detection more robust
2+
[v1.39.14](https://github.com/nextcloud/nextcloudpi/commit/077c3bc) (2021-09-25) nc-https:only fix infinite redirects behind proxy
3+
4+
[v1.39.13](https://github.com/nextcloud/nextcloudpi/commit/eef7b09) (2021-09-23) ncp-web: make letsencrypt detection more robust
35

46
[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
57

updates/1.40.0.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ install_app nc-restore
3131
</Directory>
3232
</VirtualHost>
3333
EOF
34+
apachectl -k graceful
35+
36+
# fix issue with reverse proxy infinite redirections
37+
run_app nc-httpsonly
3438

3539
# docker images only
3640
[[ -f /.docker-image ]] && {

0 commit comments

Comments
 (0)