Improve caching and timeouts

This commit is contained in:
TheSpad 2022-08-24 23:51:03 +01:00
parent d189243e7a
commit 1de4306043
No known key found for this signature in database
GPG Key ID: 08F06191F4587860

View File

@ -10,7 +10,7 @@ server {
server_name _;
root /app/www/public;
index index.html index.htm index.php;
index index.php index.html;
location / {
# enable for basic auth
@ -21,7 +21,7 @@ server {
}
# set expiration of assets to MAX for caching
location ~* \.(ico|css|js)(\?[0-9]+)?$ {
location ~* \.(ico|css|js|png|gif)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
@ -30,6 +30,7 @@ server {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_read_timeout 3600;
include /etc/nginx/fastcgi_params;
}