From 94b0b3b8d8f164600ab1efbae1a81876ce2debfb Mon Sep 17 00:00:00 2001 From: Tom Scott-Malden Date: Tue, 14 Mar 2023 12:44:18 +0000 Subject: [PATCH] Removed redundent locatio sections --- .../nginx/src/template.conf.magento2 | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/installer/templates/skywire-docker/nginx/src/template.conf.magento2 b/installer/templates/skywire-docker/nginx/src/template.conf.magento2 index 46a68b7..94c1445 100644 --- a/installer/templates/skywire-docker/nginx/src/template.conf.magento2 +++ b/installer/templates/skywire-docker/nginx/src/template.conf.magento2 @@ -93,46 +93,6 @@ server { #add_header 'X-Content-Type-Options' 'nosniff'; #add_header 'X-XSS-Protection' '1; mode=block'; - location /setup { - root $MAGE_ROOT; - location ~ ^/setup/index.php { - fastcgi_pass $xdebug_test_pass; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - } - - location ~ ^/setup/(?!pub/). { - deny all; - } - - location ~ ^/setup/pub/ { - add_header X-Frame-Options "SAMEORIGIN"; - } - } - - location /update { - root $MAGE_ROOT; - - location ~ ^/update/index.php { - fastcgi_split_path_info ^(/update/index.php)(/.+)$; - fastcgi_pass $xdebug_test_pass; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_path_info; - include fastcgi_params; - } - - # deny everything but index.php - location ~ ^/update/(?!pub/). { - deny all; - } - - location ~ ^/update/pub/ { - add_header X-Frame-Options "SAMEORIGIN"; - } - } - location / { try_files $uri $uri/ /index.php?$args; } @@ -234,4 +194,4 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } -} \ No newline at end of file +}