Skip to content

Commit

Permalink
Disable force https
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Mar 5, 2024
1 parent 86ed317 commit 3d1c859
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .docker/web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ http {
# The rules in this block are an adaptation of the rules
# in `.htaccess` that concern `/.well-known`.

location = /.well-known/carddav { return 301 https://$host/remote.php/dav/; }
location = /.well-known/caldav { return 301 https://$host/remote.php/dav/; }
location = /.well-known/carddav { return 301 http://$host/remote.php/dav/; }
location = /.well-known/caldav { return 301 http://$host/remote.php/dav/; }

location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
location /.well-known/pki-validation { try_files $uri $uri/ =404; }
Expand Down Expand Up @@ -162,7 +162,6 @@ http {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $path_info;
fastcgi_param HTTPS on;

fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
fastcgi_param front_controller_active true; # Enable pretty urls
Expand Down

0 comments on commit 3d1c859

Please sign in to comment.