Skip to content

Instantly share code, notes, and snippets.

@henryyan
Created March 14, 2014 02:32

Revisions

  1. henryyan created this gist Mar 14, 2014.
    28 changes: 28 additions & 0 deletions gistfile1.txt
    Original 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;
    }
    }