diff --git a/conf/nginx.conf b/conf/nginx.conf index 1a16b2f..c7ab8fc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,8 +1,4 @@ location __PATH__/ { - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - proxy_pass http://127.0.0.1:__PORT_API_GATEWAY__/; proxy_http_version 1.1; proxy_set_header Host $http_host; @@ -24,10 +20,6 @@ location = __PATH__/help { location __PATH__/help/ { alias __FINAL_PATH_WWW__/help/; - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } @@ -44,10 +36,6 @@ location = __PATH__/extensions/ { location __PATH__/extensions/ { alias __FINAL_PATH_EXTENSIONS__/; - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - if ($request_method = 'OPTIONS') { more_set_headers 'Access-Control-Allow-Origin: $http_origin'; more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';