networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.103.0.1/16
location /faq/upload {
client_max_body_size 400M;
try_files $uri @admin_upload;
}
location @admin_upload {
#client_max_body_size 400M;
rewrite ^ /index.php break;
include nginxconfig.io/php_fastcgi.conf;
}
location /faq/upload {
try_files $uri @admin_upload;
}
location @admin_upload {
client_max_body_size 400M;
rewrite ^ /index.php break;
include nginxconfig.io/php_fastcgi.conf;
}
location / {
try_files $uri /index.php?$query_string;
}
location ~ \.php$ {
include nginxconfig.io/php_fastcgi.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
client_max_body_size 400M;
location /faq/upload {
client_max_body_size 400M;
try_files $uri /index.php?$query_string;
}
То есть приватный метод -- как способ вынести код, или реюзать его
Сделать публичным его ТООЛЬКО!!! в тесте,