当前位置:网站首页>[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
- RANSAC的代码和原理
- 1027 Colors in Mars
- NVIDIA Clara-AGX-Developer-Kit installation
- OpenSSL client programming: SSL session failure caused by an obscure function
- 1024 Palindromic Number
- 带你认识图数据库性能和场景测试利器LDBC SNB
猜你喜欢

Bit. Store: long bear market, stable stacking products may become the main theme

UE4:Build Configuration和Config的解释

C# 二维码生成、识别,去除白边、任意颜色

External interrupt experiment based on stm32f103zet6 library function

Running lantern experiment based on stm32f103zet6 library function

指针和结构体

实战回忆录:从Webshell开始突破边界

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

The Fifth Discipline: the art and practice of learning organization

海底电缆探测技术总结
随机推荐
什么是SSR/SSG/ISR?如何在AWS上托管它们?
Solution of adding st-link to Huada MCU Keil
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献
Leetcode 821. 字符的最短距离(简单) - 续集
Pyhton爬取百度文库文字写入word文档
买股票在券商经理的开户链接上开户安全吗?求大神赐教
Leetcode 989. 数组形式的整数加法(简单)
实战回忆录:从Webshell开始突破边界
海底电缆探测技术总结
华大单片机KEIL添加ST-LINK解决方法
華大單片機KEIL報錯_WEAK的解决方案
(LC)46. Full Permutation
429-二叉树(108. 将有序数组转换为二叉搜索树、538. 把二叉搜索树转换为累加树、 106.从中序与后序遍历序列构造二叉树、235. 二叉搜索树的最近公共祖先)
字典树(复习)
嵌入式软件开发中必备软件工具
MySQL beginner benefits
经纬度分析
Embracing cloud Nativity: Practice of Jiangsu Mobile order center
带你认识图数据库性能和场景测试利器LDBC SNB