This commit is contained in:
Stefan Wieczorek
2024-11-20 13:08:58 +01:00
parent a56b3ed165
commit bdb9d3b550
2 changed files with 18 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
#{"rootDirectory":"web","phpVersion":"8.1"}
#{"rootDirectory":"web","phpVersion":"8.3"}
server {
listen 80;
listen [::]:80;
@@ -44,7 +44,7 @@ server {
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
rewrite ^ /index.php;
}
location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
@@ -87,6 +87,7 @@ server {
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|ico|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
add_header Access-Control-Allow-Origin "*";
add_header alt-svc 'h3=":443"; ma=86400';
try_files $uri @rewrite;
expires max;
access_log off;
}
@@ -94,4 +95,4 @@ server {
if (-f $request_filename) {
break;
}
}
}