Skip to content

Commit

Permalink
nc-https: proto logic was inverted fix
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Sep 28, 2021
1 parent b067844 commit 2be666b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/ncp/CONFIG/nc-httpsonly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
configure()
{
[[ -f /.ncp-image ]] && return 0
[[ $ACTIVE == "no" ]] && local opt=Off proto=http || local opt=On proto=https
if [[ $ACTIVE == "no" ]]; then
local opt=Off proto=https
else
local opt=On proto=http
fi
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.15](https://github.com/nextcloud/nextcloudpi/commit/3e408f1) (2021-09-27) add get_ip function
[v1.39.16](https://github.com/nextcloud/nextcloudpi/commit/e6ebc3d) (2021-09-27) nc-https: proto logic was inverted fix

[v1.39.15](https://github.com/nextcloud/nextcloudpi/commit/b067844) (2021-09-27) add get_ip function

[v1.39.14](https://github.com/nextcloud/nextcloudpi/commit/6ad96ed) (2021-09-25) nc-https:only fix infinite redirects behind proxy

Expand Down

0 comments on commit 2be666b

Please sign in to comment.