不再一台主机上.https代理怎么做呢?外加NAT

现在是数据服务器A:10.0.1.4运行数据库存储,还有seafile和seahub…还有一个https代理服务器:10.0.1.3 运行nginx…外网做了NAT转发.请问该如何设置?按照官方文档给出的配置…我进行了修改…如下…无法登录,请问还需要设置什么吗?
已经修改了SERVICE_URL 和 FILE_SERVER_ROOT,仍然是无效的…我现在的直接访问10.0.1.4:8000可以正常使用…但是代理请问怎么修改呢?

    server {
  listen 443 ssl;
#      ssl on;
  include snippets/snakeoil_cloud.iook.xyz.conf;
  server_name cloud.iook.xyz;
  proxy_set_header X-Forwarded-For $remote_addr;
  location / {
      fastcgi_pass    10.0.1.4:8000;
      fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
      fastcgi_param   PATH_INFO           $fastcgi_script_name;

      fastcgi_param   SERVER_PROTOCOL    $server_protocol;
      fastcgi_param   QUERY_STRING        $query_string;
      fastcgi_param   REQUEST_METHOD      $request_method;
      fastcgi_param   CONTENT_TYPE        $content_type;
      fastcgi_param   CONTENT_LENGTH      $content_length;
      fastcgi_param   SERVER_ADDR         $server_addr;
      fastcgi_param   SERVER_PORT         $server_port;
      fastcgi_param   SERVER_NAME         $server_name;
      fastcgi_param   REMOTE_ADDR         $remote_addr;
      fastcgi_param   HTTPS               on;
      fastcgi_param   HTTP_SCHEME         https;

      access_log      /var/log/nginx/seahub.access.log;
      error_log       /var/log/nginx/seahub.error.log;
  }
  location /seafhttp {
      rewrite ^/seafhttp(.*)$ $1 break;
      proxy_pass http://10.0.1.4:8082;
      client_max_body_size 0;
      proxy_connect_timeout  36000s;
      proxy_read_timeout  36000s;
  }
  location /media {
      root /home/seafile/seafile-server-latest/seahub;
  }
}

配置如上.但是不能访问.

这个论坛.有官方给予回复吗?

那先看下nginx的日志吧,访问失败返回的状态码是多少,看下具体的报错信息

返回代码是time out

我也是两台机器。
配置成下面这样就可以了,
SERVICE_URL :https://www.xxx.com
FILE_SERVER_ROOT:https://up.xxx.com

在另一台nginx上设置
https://www.xxx.com -->10.0.1.4:8000
https://up.xxx.com —>10.0.1.4:8082