Skip to content

Commit

Permalink
nc-https:only fix infinite redirects behind proxy
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Sep 25, 2021
1 parent eef7b09 commit 6ad96ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-httpsonly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 4 additions & 0 deletions updates/1.40.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]] && {
Expand Down

0 comments on commit 6ad96ed

Please sign in to comment.