storage url o'zgartirildi

This commit is contained in:
2026-04-28 16:31:43 +05:00
parent 285be8edea
commit 79304de97a

View File

@@ -9,14 +9,21 @@ server {
root /quyoshli/public; root /quyoshli/public;
index index.php; index index.php;
# Final MinIO proxy fix - ^~ is mandatory to override regex blocks location = /quyoshli {
return 301 /quyoshli/;
}
# MinIO bucket public files. The ^~ prefix keeps image/css regex blocks from catching these URLs.
location ^~ /quyoshli/ { location ^~ /quyoshli/ {
proxy_http_version 1.1;
proxy_set_header Host $proxy_host; proxy_set_header Host $proxy_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://quyoshli-minio:9100; proxy_pass http://minio:9100;
proxy_request_buffering off;
proxy_buffering off; proxy_buffering off;
add_header X-Storage-Proxy minio always;
} }
# try to serve file directly, fallback to start.php # try to serve file directly, fallback to start.php