Docker容器中的传输WebUI 409

时间:2016-05-08 23:39:58

标签: ubuntu docker transmission-daemon

因此,我在服务器主机上设置了一个docker容器,作为传输守护程序种子盒。我在官方Ubuntu 14.04容器上安装了openssh和transmission-daemon。我将容器上的端口9091转发给主机,以便我可以远程访问容器,并使用以下settings.json文件设置transmission-daemon:

{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/root/transmission/complete",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/root/transmission/incomplete",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{0477ada0ba97374d44fc4e78a5328dc32107ed26yYyN9qwZ",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "transmission",
    "rpc-whitelist": "*.*.*.*",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 2,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}

每当我通过http://ip_addr:9091/transmission/web/http://ip_addr:9091/transmission/连接到服务器时,都会收到以下错误:

  

409:冲突

     

您的请求的会话ID标头无效。

     

要解决此问题,请按以下步骤操作:

     

读取响应时,获取其X-Transmission-Session-Id标头和   记住它将更新的标题添加到您的传出请求时   收到此409错误消息,重新发送您的请求与更新   header已添加此要求以帮助防止CSRF攻击。

     

X-传输会话Id:   ulkx30bOoRTIw1yu4s0GCvUAGY6VFY844Iag3f8sfYtZjbRm

我能做些什么来解决这个问题?谢谢!

0 个答案:

没有答案