Skip to content

Commit

Permalink
Revert "letsencrypt: fix renewal with httpsonly enabled"
Browse files Browse the repository at this point in the history
This reverts commit a4851dc.
  • Loading branch information
nachoparker committed Sep 25, 2021
1 parent eef7b09 commit e1d02e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion bin/ncp/CONFIG/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ EOF
DocumentRoot /var/www/nextcloud
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.well-known/acme-challenge/ - [L]
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>
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/10f3ddb) (2021-09-25) Revert "letsencrypt: fix renewal with httpsonly enabled"

[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
5 changes: 3 additions & 2 deletions updates/1.40.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
# update ncp-restore
install_app nc-restore

# fix letsencrypt with httpsonly enabled
# revert - fix letsencrypt with httpsonly enabled
cat > /etc/apache2/sites-available/000-default.conf <<'EOF'
<VirtualHost _default_:80>
DocumentRoot /var/www/nextcloud
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.well-known/acme-challenge/ - [L]
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>
Expand All @@ -31,6 +30,8 @@ install_app nc-restore
</Directory>
</VirtualHost>
EOF
apachectl -k graceful


# docker images only
[[ -f /.docker-image ]] && {
Expand Down

0 comments on commit e1d02e1

Please sign in to comment.