From dc250cfdeec07349bcebc71d56ae1df5ab80cd03 Mon Sep 17 00:00:00 2001 From: Dennis Mo Date: Sun, 26 Apr 2020 17:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E9=AA=8C=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gitea/README.md | 5 +++-- NginxAndLetsencrypt/经验汇集.md | 14 ++++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Gitea/README.md b/Gitea/README.md index 6457563..5cd0278 100644 --- a/Gitea/README.md +++ b/Gitea/README.md @@ -41,9 +41,10 @@ https://gitea.io/en-us/ 11. 重启nginx的docker容器。 ## 使用说明 -配置文件在:/srv/gitea/gitea/gitea/conf下的app.ini +- 配置文件在:/srv/gitea/gitea/gitea/conf下的app.ini -邮件smtp服务器要带端口号(通常是25) +- 邮件smtp服务器要带端口号(通常是25) +- 注意对于大项目的首次push,有可能上传请求体大小超出Nginx限制。注意相关配置。参考:https://blog.csdn.net/yedajiang44/article/details/99294216 ## 测试环境 diff --git a/NginxAndLetsencrypt/经验汇集.md b/NginxAndLetsencrypt/经验汇集.md index 8125b5a..f990694 100644 --- a/NginxAndLetsencrypt/经验汇集.md +++ b/NginxAndLetsencrypt/经验汇集.md @@ -23,6 +23,16 @@ tail -n 20 【文件名】#查看文件的后20行 ## 坑记 +### Nginx + +#### 请求大小限制 + +在http 的 server 节点中添加`client_max_body_size`。参见https://blog.csdn.net/yedajiang44/article/details/99294216 + +#### Nginx开启gzip + +参考:https://blog.csdn.net/bigtree_3721/article/details/79849503 + ### 未分类 #### 域名解析 @@ -65,10 +75,6 @@ docker-compose run --rm --entrypoint "\ echo -#### Nginx开启gzip - -参考:https://blog.csdn.net/bigtree_3721/article/details/79849503 - #### docker-compose中的特殊字符 如有特殊字符,用""将包含特殊字符的字符串包裹起来。如果有$,哪怕在引号内,也需要输入两个$$以作转义。