{"action":"created","issue":{"url":"https://api.github.com/repos/actorapp/actor-platform/issues/395","repository_url":"https://api.github.com/repos/actorapp/actor-platform","labels_url":"https://api.github.com/repos/actorapp/actor-platform/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/actorapp/actor-platform/issues/395/comments","events_url":"https://api.github.com/repos/actorapp/actor-platform/issues/395/events","html_url":"https://github.com/actorapp/actor-platform/pull/395","id":137187643,"number":395,"title":"fix(server): fixed local storage adapter port definition","user":{"login":"y0ke","id":10811977,"avatar_url":"https://avatars.githubusercontent.com/u/10811977?v=3","gravatar_id":"","url":"https://api.github.com/users/y0ke","html_url":"https://github.com/y0ke","followers_url":"https://api.github.com/users/y0ke/followers","following_url":"https://api.github.com/users/y0ke/following{/other_user}","gists_url":"https://api.github.com/users/y0ke/gists{/gist_id}","starred_url":"https://api.github.com/users/y0ke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y0ke/subscriptions","organizations_url":"https://api.github.com/users/y0ke/orgs","repos_url":"https://api.github.com/users/y0ke/repos","events_url":"https://api.github.com/users/y0ke/events{/privacy}","received_events_url":"https://api.github.com/users/y0ke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-29T08:37:37Z","updated_at":"2016-02-29T10:49:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/actorapp/actor-platform/pulls/395","html_url":"https://github.com/actorapp/actor-platform/pull/395","diff_url":"https://github.com/actorapp/actor-platform/pull/395.diff","patch_url":"https://github.com/actorapp/actor-platform/pull/395.patch"},"body":"It seems that `LocalFileStorageAdapter` ignores port definition.\r\nIn the case of using any port other than 80/443(http/https) in http {} section of server.conf, file storage does not work at all.as far as I know, writing server.conf something like this is the only way to avoid the issue.\r\n```\r\n http {\r\n   interface: \"0.0.0.0\"\r\n   port: 9090\r\n   base-uri: \"http://foo.bar:9090\"\r\n }\r\n```\r\nthis commit fix the issue."},"comment":{"url":"https://api.github.com/repos/actorapp/actor-platform/issues/comments/190151834","html_url":"https://github.com/actorapp/actor-platform/pull/395#issuecomment-190151834","issue_url":"https://api.github.com/repos/actorapp/actor-platform/issues/395","id":190151834,"user":{"login":"rockjam","id":1951244,"avatar_url":"https://avatars.githubusercontent.com/u/1951244?v=3","gravatar_id":"","url":"https://api.github.com/users/rockjam","html_url":"https://github.com/rockjam","followers_url":"https://api.github.com/users/rockjam/followers","following_url":"https://api.github.com/users/rockjam/following{/other_user}","gists_url":"https://api.github.com/users/rockjam/gists{/gist_id}","starred_url":"https://api.github.com/users/rockjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockjam/subscriptions","organizations_url":"https://api.github.com/users/rockjam/orgs","repos_url":"https://api.github.com/users/rockjam/repos","events_url":"https://api.github.com/users/rockjam/events{/privacy}","received_events_url":"https://api.github.com/users/rockjam/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T10:49:46Z","updated_at":"2016-02-29T10:49:46Z","body":"Hi, @y0ke. It's a tricky moment in http config, but not an issue. It is common situation like this:\r\n\r\n```\r\nhttp {\r\n   interface: \"127.0.0.1\"\r\n   port: 9090\r\n   base-uri: \"https://example.com:443\"\r\n }\r\n```\r\nOr simmilar. In general - port in base uri potentially can be different from port in http configuration"}}