Created
March 14, 2014 02:32
-
-
Save henryyan/9541147 to your computer and use it in GitHub Desktop.
nexus的nginx代理
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 characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment