mirror of
https://github.com/linuxserver/docker-phpmyadmin.git
synced 2026-02-20 08:40:43 +08:00
Improve caching and timeouts
This commit is contained in:
parent
d189243e7a
commit
1de4306043
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user