From 4670a545eb41d01d996a268d0b87307ee8fc2185 Mon Sep 17 00:00:00 2001 From: Stefan Wieczorek Date: Mon, 14 Mar 2022 17:22:23 +0100 Subject: [PATCH] . --- v2/Symfony/Symfony 5 | 54 -------------------------------------------- v2/Symfony/Symfony 6 | 11 +-------- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100755 v2/Symfony/Symfony 5 diff --git a/v2/Symfony/Symfony 5 b/v2/Symfony/Symfony 5 deleted file mode 100755 index 6cfc94b..0000000 --- a/v2/Symfony/Symfony 5 +++ /dev/null @@ -1,54 +0,0 @@ -server { - listen 80; - listen [::]:80; - listen 443 ssl http2; - listen [::]:443 ssl http2; - {{ssl_certificate_key}} - {{ssl_certificate}} - {{server_name}} - {{root}} - - {{nginx_access_log}} - {{nginx_error_log}} - - #if ($bad_bot = 1) { - # return 403; - #} - - if ($scheme != "https") { - rewrite ^ https://$host$uri permanent; - } - - location ~ /.well-known { - auth_basic off; - allow all; - } - - {{basic_auth}} - - try_files $uri $uri/ /index.php?$args =404; - index index.php index.html; - - location ~ \.php$ { - include fastcgi_params; - fastcgi_intercept_errors on; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - try_files $uri =404; - fastcgi_read_timeout 3600; - fastcgi_send_timeout 3600; - fastcgi_param HTTPS $fastcgi_https; - fastcgi_pass 127.0.0.1:{{php_fpm_port}}; - fastcgi_param PHP_VALUE "{{php_settings}}"; - } - - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - - if (-f $request_filename) { - break; - } -} \ No newline at end of file diff --git a/v2/Symfony/Symfony 6 b/v2/Symfony/Symfony 6 index 6cfc94b..0c04651 100755 --- a/v2/Symfony/Symfony 6 +++ b/v2/Symfony/Symfony 6 @@ -11,20 +11,11 @@ server { {{nginx_access_log}} {{nginx_error_log}} - #if ($bad_bot = 1) { - # return 403; - #} - if ($scheme != "https") { rewrite ^ https://$host$uri permanent; } - location ~ /.well-known { - auth_basic off; - allow all; - } - - {{basic_auth}} + {{settings}} try_files $uri $uri/ /index.php?$args =404; index index.php index.html;