This commit is contained in:
Stefan Wieczorek
2022-01-21 17:24:13 +01:00
parent 64c9075950
commit 72815ccce0
2 changed files with 12 additions and 12 deletions

View File

@@ -11,9 +11,9 @@ server {
{{nginx_access_log}} {{nginx_access_log}}
{{nginx_error_log}} {{nginx_error_log}}
if ($bad_bot = 1) { #if ($bad_bot = 1) {
return 403; # return 403;
} #}
if ($scheme != "https") { if ($scheme != "https") {
rewrite ^ https://$host$uri permanent; rewrite ^ https://$host$uri permanent;
@@ -26,7 +26,7 @@ server {
{{basic_auth}} {{basic_auth}}
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args =404;
index index.php index.html; index index.php index.html;
location ~ \.php$ { location ~ \.php$ {
@@ -38,8 +38,8 @@ server {
fastcgi_read_timeout 3600; fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600; fastcgi_send_timeout 3600;
fastcgi_param HTTPS $fastcgi_https; fastcgi_param HTTPS $fastcgi_https;
{{php_fpm_listener}} fastcgi_pass 127.0.0.1:{{php_fpm_port}};
{{php_settings}} 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)$ { location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {

View File

@@ -11,9 +11,9 @@ server {
{{nginx_access_log}} {{nginx_access_log}}
{{nginx_error_log}} {{nginx_error_log}}
if ($bad_bot = 1) { #if ($bad_bot = 1) {
return 403; # return 403;
} #}
if ($scheme != "https") { if ($scheme != "https") {
rewrite ^ https://$host$uri permanent; rewrite ^ https://$host$uri permanent;
@@ -26,7 +26,7 @@ server {
{{basic_auth}} {{basic_auth}}
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args =404;
index index.php index.html; index index.php index.html;
location ~ \.php$ { location ~ \.php$ {
@@ -38,8 +38,8 @@ server {
fastcgi_read_timeout 3600; fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600; fastcgi_send_timeout 3600;
fastcgi_param HTTPS $fastcgi_https; fastcgi_param HTTPS $fastcgi_https;
{{php_fpm_listener}} fastcgi_pass 127.0.0.1:{{php_fpm_port}};
{{php_settings}} 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)$ { location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {