Nginx config for Cloud Torrent

If Cloud Torrent setup not working with Nginx, try the below codes.

Nginx as Reverse Proxy

location / {
    proxy_pass http://127.0.0.1:63000;
}

location /sync {
    proxy_pass http://127.0.0.1:63000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
}

Native Nginx

location / {
    proxy_set_header Cache-Control: no-cache;
    chunked_transfer_encoding off;
    proxy_cache off;
    proxy_buffering off;
    proxy_set_header Connection keep-alive;
    proxy_connect_timeout 3600;
    proxy_send_timeout 3600;
    proxy_read_timeout 3600;
    keepalive_timeout 3600;

    proxy_pass http://127.0.0.1:63000;
}

Note: Make sure you change the port 63000, if you used different one.

Tags

Share your thoughts by leaving a comment below.