瀏覽代碼

Refa: enlarge default max request body size. (#6088)

### What problem does this PR solve?


### Type of change


- [x] Refactoring
tags/v0.18.0
Kevin Hu 7 月之前
父節點
當前提交
a6ab2c71c3
No account linked to committer's email address
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      api/apps/__init__.py
  2. 1
    1
      docker/nginx/nginx.conf

+ 1
- 1
api/apps/__init__.py 查看文件

@@ -83,7 +83,7 @@ app.errorhandler(Exception)(server_error_response)
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
app.config["MAX_CONTENT_LENGTH"] = int(
os.environ.get("MAX_CONTENT_LENGTH", 128 * 1024 * 1024)
os.environ.get("MAX_CONTENT_LENGTH", 1024 * 1024 * 1024)
)

Session(app)

+ 1
- 1
docker/nginx/nginx.conf 查看文件

@@ -26,7 +26,7 @@ http {
keepalive_timeout 65;

#gzip on;
client_max_body_size 128M;
client_max_body_size 1024M;

include /etc/nginx/conf.d/ragflow.conf;
}

Loading…
取消
儲存