当前位置:网站首页>[bug] there is an error uploading the picture (413 request entity too large)
[bug] there is an error uploading the picture (413 request entity too large)
2022-06-27 19:56:00 【The Nuggets said】
solve
nginx Upload file size is limited , Need to adjust nginx To configure .nginx Modify upload file size limit client_max_body_size 1000M;
nginx Modify upload file size limit , Examples are as follows :
server {
listen 80;
server_name localhost;
client_max_body_size 1000M;
location /web {
alias D:/web;
index main.html;
}
location /web/service {
proxy_pass http://HOST/service;
}
location /web/service/upload {
proxy_pass http://HOST/upload;
}
}
additional
Show reality IP To configure
worker_processes 1;
error_log stderr notice;
events {
worker_connections 1024;
}
http {
include mime.types;
variables_hash_max_size 1024;
access_log off;
#real_ip_header X-Real-IP;
charset utf-8;
gzip on;
gzip_min_length 4k;
gzip_comp_level 5;
gzip_buffers 4 16k;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript application/json;
gzip_vary on;
client_max_body_size 30M;
# development environment
server {
listen 2040;
location / {
#add_header 'Referrer-Policy' 'no-referrer-when-downgrade';
proxy_set_header X-Real-IP $remote_addr; # Store the user's real ip
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Every time you go through a reverse proxy , Will reverse proxy IP Store in X-Forwarded-For in
proxy_set_header Host $host;
proxy_pass http://localhost:17050;
}
location ~/api/form {
proxy_set_header Host $host;
proxy_pass http://localhost:17022;
}
location ~/api/ {
#proxy_set_header Host $host;
proxy_pass http://localhost:17042;
}
}
}
边栏推荐
- 基于STM32F103ZET6库函数跑马灯实验
- 429- binary tree (108. convert the ordered array into a binary search tree, 538. convert the binary search tree into an accumulation tree, 106. construct a binary tree from the middle order and post o
- As a software engineer, give advice to young people (Part 2)
- ABAP-CL_OBJECT_COLLECTION工具类
- Redis cluster Series III
- Solution of adding st-link to Huada MCU Keil
- Hanoi塔问题
- 华大单片机KEIL报错_WEAK的解决方案
- 1030 Travel Plan
- One to one relationship
猜你喜欢

基于STM32F103ZET6库函数按键输入实验

嵌入式软件开发中必备软件工具

带你认识图数据库性能和场景测试利器LDBC SNB

从感知机到前馈神经网络的数学推导

Oracle 获取月初、月末时间,获取上一月月初、月末时间

Solution of adding st-link to Huada MCU Keil

Error reported by Huada MCU Keil_ Weak's solution

海底电缆探测技术总结

429-二叉树(108. 将有序数组转换为二叉搜索树、538. 把二叉搜索树转换为累加树、 106.从中序与后序遍历序列构造二叉树、235. 二叉搜索树的最近公共祖先)

《第五项修炼》(The Fifth Discipline):学习型组织的艺术与实践
随机推荐
“我让这个世界更酷”2022华清远见研发产品发布会圆满成功
运算符的基础知识
Mathematical derivation from perceptron to feedforward neural network
循环遍历及函数基础知识
可靠的分布式锁 RedLock 与 redisson 的实现
A simple calculation method of vanishing point
MySQL初学者福利
一种朴素的消失点计算方法
Cdga | what is the core of digital transformation in the transportation industry?
工作流自动化 低代码是关键
As a software engineer, give advice to young people (Part 2)
UE4随笔:FString、FName 与 FText
UE4-Actor基础知识
1023 Have Fun with Numbers
Leetcode 989. 数组形式的整数加法(简单)
binder hwbinder vndbinder
Crontab's learning essays
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
拥抱云原生:江苏移动订单中心实践
OpenSSL client programming: SSL session failure caused by an obscure function