app.use(fileUpload({
limits: { fileSize: 5000 * 1024 * 1024 }
}));
app.use(bodyParser.urlencoded({
limit: 5000 * 1024 * 1024,
extended: true
}));
location ~ \.php$
2022/04/12 12:45:05 [error] 42163#42163: *1395 client intended to send too large body: 11447 bytes, client: CLIENTIP, server: MYDOMAIN, request: "POST /connectors/index.php HTTP/1.0", host: "MYDOMAIN", referrer: "htt
2022/04/12 12:19:29 [error] 42163#42163: *536 client intended to send too large body: 137880 bytes, client: CLIENTIP, server: MYDONAIN, request: "POST /connectors/index.php HTTP/1.0", host: "MYDONAIN", referrer: "ht
upstream php {
server unix:/run/php/php7.4-fpm.sock;
}
#server {
# listen 80;
# listen [::]:80 ipv6only=on;
# server_name MYDOMAIN;
# return 301 https://$host$request_uri;
#}
server {
#root /var/www/html;
#index index.html index.htm index.nginx-debian.html;
server_name MYDOMAIN;
client_max_body_size 5000;
#location / {
# try_files $uri $uri/ =404;
#}
# This is optional - if you want a customized 404 error page
#error_page 404 /404.html;
listen 80;
#listen [::]:443 ssl ipv6only=on; # managed by Certbot
#listen 443 ssl; # managed by Certbot
#ssl_certificate /etc/letsencrypt/live/MYDOMAIN/fullchain.pem; # managed by Certbot
#ssl_certificate_key /etc/letsencrypt/live/MYDOMAIN/privkey.pem; # managed by Certbot
#include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location /socket.io/ {
proxy_pass http://localhost:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
location /video/ {
rewrite /video/(.*) /$1 break;
proxy_pass http://localhost:3001;
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5000;
}
location / {
try_files $uri $uri/ @rewrite;
index index.html index.php;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_ignore_client_abort on;
fastcgi_param SERVER_NAME $http_host;
}
}
2022/04/11 03:49:44 [emerg] 35815#35815: "client_max_body_size" directive invalid value in /etc/nginx/nginx.conf:20
Вот так я его вызываю:
А вот так отдаю из webRtc: