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)(/.+)$;