Skip to content

Commit

Permalink
feat: use correct variable syntax
Browse files Browse the repository at this point in the history
Related: SHOPWARE-124
  • Loading branch information
sd-lueckel committed Jan 10, 2025
1 parent 7a66ee0 commit ba64e47
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nginx/etc/nginx/includes/shopware6
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include includes/defaults;

client_max_body_size 128M;

root /var/www/public;

Expand Down Expand Up @@ -38,15 +37,15 @@ location ~* ^.+\.(?:css|cur|js|jpe?g|gif|ico|png|svg|webp|html|woff|woff2|xml)$
open_file_cache_min_uses 2;
open_file_cache_errors off;

try_files $$uri /index.php$$is_args$$args;
try_files $uri /index.php$is_args$args;
}

location ~* ^.+\.svg$ {
add_header Content-Security-Policy "script-src 'none'";
}

location / {
try_files $$uri /index.php$$is_args$$args;
try_files $uri /index.php$is_args$args;
}

location ~ \.php$ {
Expand All @@ -55,8 +54,8 @@ location ~ \.php$ {
fastcgi_param HTTP_PROXY "";
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_param REQUEST_METHOD $$request_method;
fastcgi_param SCRIPT_FILENAME $$request_filename;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param SCRIPT_FILENAME $request_filename;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
Expand Down

0 comments on commit ba64e47

Please sign in to comment.