{"action":"created","issue":{"url":"https://api.github.com/repos/ziahamza/webui-aria2/issues/108","labels_url":"https://api.github.com/repos/ziahamza/webui-aria2/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/ziahamza/webui-aria2/issues/108/comments","events_url":"https://api.github.com/repos/ziahamza/webui-aria2/issues/108/events","html_url":"https://github.com/ziahamza/webui-aria2/issues/108","id":39036982,"number":108,"title":"Can't connect to aria2c with HTTPS","user":{"login":"Aqualie","id":8303616,"avatar_url":"https://avatars.githubusercontent.com/u/8303616?v=3","gravatar_id":"","url":"https://api.github.com/users/Aqualie","html_url":"https://github.com/Aqualie","followers_url":"https://api.github.com/users/Aqualie/followers","following_url":"https://api.github.com/users/Aqualie/following{/other_user}","gists_url":"https://api.github.com/users/Aqualie/gists{/gist_id}","starred_url":"https://api.github.com/users/Aqualie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aqualie/subscriptions","organizations_url":"https://api.github.com/users/Aqualie/orgs","repos_url":"https://api.github.com/users/Aqualie/repos","events_url":"https://api.github.com/users/Aqualie/events{/privacy}","received_events_url":"https://api.github.com/users/Aqualie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-07-29T21:21:26Z","updated_at":"2015-08-24T12:54:47Z","closed_at":null,"body":"Connection works without SSL enabled, when enabled connection cannot be made and nothing is listed in the server logs. This is with OpenSSL enabled and AppleTLS, GnuTLS and WinTLS disabled. No issues/warnings when server is started with the correct certificate and private key."},"comment":{"url":"https://api.github.com/repos/ziahamza/webui-aria2/issues/comments/134186546","html_url":"https://github.com/ziahamza/webui-aria2/issues/108#issuecomment-134186546","issue_url":"https://api.github.com/repos/ziahamza/webui-aria2/issues/108","id":134186546,"user":{"login":"csdt","id":9721130,"avatar_url":"https://avatars.githubusercontent.com/u/9721130?v=3","gravatar_id":"","url":"https://api.github.com/users/csdt","html_url":"https://github.com/csdt","followers_url":"https://api.github.com/users/csdt/followers","following_url":"https://api.github.com/users/csdt/following{/other_user}","gists_url":"https://api.github.com/users/csdt/gists{/gist_id}","starred_url":"https://api.github.com/users/csdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csdt/subscriptions","organizations_url":"https://api.github.com/users/csdt/orgs","repos_url":"https://api.github.com/users/csdt/repos","events_url":"https://api.github.com/users/csdt/events{/privacy}","received_events_url":"https://api.github.com/users/csdt/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T12:54:47Z","updated_at":"2015-08-24T12:54:47Z","body":"Normally, the configuration file is on the file `configuration.js`.\r\nBut webui-aria2 seems to be buggy about connecting with these parameters.\r\n\r\nTo fix the bug, I needed to edit the file `js/services/rpc/rpc.js` like this:\r\n```javascript\r\nangular\r\n.module('webui.services.rpc', [\r\n  'webui.services.rpc.syscall', 'webui.services.configuration', 'webui.services.alerts',\r\n  'webui.services.utils'\r\n])\r\n.factory('$rpc', [\r\n  '$syscall', '$globalTimeout', '$alerts', '$utils',\r\n  '$rootScope', '$location', '$authconf',\r\nfunction(syscall, time, alerts, utils, rootScope, uri, authconf) {\r\n\r\n  var subscriptions = []\r\n    , configurations = [authconf]\r\n    , currentConf = {}\r\n    , currentToken\r\n    , timeout = null\r\n    , forceNextUpdate = false;\r\n\r\n  var cookieConf = utils.getCookie('aria2conf');\r\n\r\n  // try at the start, so that it is presistant even when default authconf works\r\n  if (cookieConf) configurations.push(cookieConf);\r\n\r\n  if (['http', 'https'].indexOf(uri.protocol()) != -1 && uri.host() != 'localhost') {\r\n    console.log(uri.host());\r\n    configurations.push({\r\n      host: uri.host(), // <===================== Modifications // default: \"localhost\"\r\n      port: uri.port(), // <===================== are           // default: 6800\r\n      encrypt: uri.protocol() == 'https', // <=== here          // default: false\r\n    });\r\n    console.log(configurations);\r\n  }\r\n```\r\n\r\nOtherwise, it is stored in cookies and you can modify it directly from the web page:\r\n![webui-aria2](https://cloud.githubusercontent.com/assets/9721130/9440496/e5d636f8-4a6f-11e5-9a9a-85de86f05deb.png)\r\n"}}