forked from eatvio/eatvio-infra
add nginx internal/glossary/dump path
(cherry picked from commit a82e687904)
This commit is contained in:
@@ -53,6 +53,23 @@ server {
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
# Prebuilt glossary: storage/app/glossary-exports/. Только X-Accel-Redirect из Laravel; прямой запрос — 404.
|
||||
location /internal/glossary-exports/ {
|
||||
internal;
|
||||
alias /application/storage/app/glossary-exports/;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
default_type application/json;
|
||||
charset utf-8;
|
||||
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_comp_level 5;
|
||||
gzip_min_length 256;
|
||||
gzip_types application/json;
|
||||
}
|
||||
|
||||
# Дамп через FastCGI (не try_files → index.php). При prebuilt Laravel отдаёт X-Accel-Redirect → location выше.
|
||||
location ~ ^/api/glossaries/dump/?$ {
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
|
||||
Reference in New Issue
Block a user