Better browser/CDN caching on static assets.

This commit is contained in:
Buster Neece 2023-12-28 14:18:18 -06:00
parent 222676e45a
commit d1daf4bc72
No known key found for this signature in database
1 changed files with 13 additions and 0 deletions

View File

@ -53,6 +53,7 @@ server {
# Built-in docs
location /docs {
alias /var/azuracast/docs;
expires 1d;
index index.html;
}
@ -103,6 +104,18 @@ server {
}
{{end}}
location /static/icons {
expires 365d;
}
location /static/img {
expires 7d;
}
location /favicon.ico {
add_header Access-Control-Allow-Origin *;
expires 365d;
}
location ~ ^/index\.php(/|$) {
include fastcgi_params;
fastcgi_read_timeout {{ default .Env.NGINX_TIMEOUT "1800" }};