From ba6f6a0e707c57e25351e50d7872ad55aaafdc5d Mon Sep 17 00:00:00 2001 From: groot Date: Wed, 23 Apr 2025 11:48:40 +0000 Subject: [PATCH] nginx/conf.d/default.conf aktualisiert --- nginx/conf.d/default.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 44efa97..c117a10 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -8,6 +8,13 @@ server { add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"; add_header Access-Control-Allow-Credentials true; } + location ~* \.(jpg|jpeg|png|gif|css|js|ico|woff|woff2|ttf|svg|eot|mp4|webm|ogg|mp3)$ { + add_header Access-Control-Allow-Origin https://matrix-web.send.nrw; + add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"; + add_header Access-Control-Allow-Credentials true; + access_log off; + expires 30d; + } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\.php)(/.+)$;