Created
March 14, 2014 02:32
Revisions
-
henryyan created this gist
Mar 14, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ server { listen *:80; server_name maven.kafeitu.me; #客户端 header 请求超时时间 client_header_timeout 3m; #客户端 内容 请求超时时间 client_body_timeout 3m; #客户端发送请求超时时间 established 状态还没有发送回应 send_timeout 3m; client_max_body_size 100m; proxy_connect_timeout 1000s; proxy_read_timeout 1000s; proxy_send_timeout 1000s; access_log /var/log/nginx/nexus_access.log; error_log /var/log/nginx/nexus_error.log; location / { proxy_pass http://127.0.0.1:8081/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }