diff --git a/jiao77.cn.nginx.conf b/jiao77.cn.nginx.conf index 36003e5..f295e97 100644 --- a/jiao77.cn.nginx.conf +++ b/jiao77.cn.nginx.conf @@ -172,6 +172,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + root /var/www/jiao77.cn; index index.html; @@ -230,6 +233,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + root /var/www/jiao77.cn; index index.html; @@ -260,6 +266,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + root /var/www/jiao77.cn; index index.html; @@ -287,6 +296,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # Gitea 反向代理 (转发到 10.126.126.2:3012) location / { proxy_pass http://10.126.126.2:3012/; @@ -321,6 +333,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # 反向代理到 10.126.126.2:5666 location / { proxy_pass http://10.126.126.2:5666/; @@ -355,6 +370,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # Ollama API 反向代理 location / { proxy_pass http://10.126.126.8:11435/; @@ -390,6 +408,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # WebDAV 反向代理 location / { proxy_pass https://10.126.126.2:5006/; @@ -426,6 +447,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # AList 反向代理 location / { proxy_pass http://10.126.126.2:5244/; @@ -460,6 +484,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + location / { proxy_pass http://10.126.126.2:8090/; proxy_set_header Host $host; @@ -488,6 +515,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + location / { proxy_pass http://10.126.126.2:13002/; proxy_set_header Host $host; @@ -516,6 +546,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + location / { proxy_pass http://10.126.126.2:1081/; proxy_set_header Host $host; @@ -544,6 +577,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + location / { proxy_pass http://10.126.126.2:5001/; proxy_set_header Host $host; @@ -572,6 +608,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # Halo 反向代理 location / { proxy_pass http://10.126.126.2:8083/; @@ -606,6 +645,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # WordPress 反向代理 location / { proxy_pass http://10.126.126.2:8080/; @@ -638,6 +680,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # 待配置 - 当前返回 503 location / { return 503 "Service not configured"; @@ -663,6 +708,9 @@ server { ssl_prefer_server_ciphers off; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + # 允许最大上传 50M + client_max_body_size 50M; + # 反向代理到 10.126.126.2:5053 location / { proxy_pass http://10.126.126.2:5053/;