{"action":"created","issue":{"url":"https://api.github.com/repos/refile/refile/issues/217","labels_url":"https://api.github.com/repos/refile/refile/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/refile/refile/issues/217/comments","events_url":"https://api.github.com/repos/refile/refile/issues/217/events","html_url":"https://github.com/refile/refile/issues/217","id":73939478,"number":217,"title":"Using CloudFront doesn't show in monitoring reports","user":{"login":"IanJBriggs","id":10484363,"avatar_url":"https://avatars.githubusercontent.com/u/10484363?v=3","gravatar_id":"","url":"https://api.github.com/users/IanJBriggs","html_url":"https://github.com/IanJBriggs","followers_url":"https://api.github.com/users/IanJBriggs/followers","following_url":"https://api.github.com/users/IanJBriggs/following{/other_user}","gists_url":"https://api.github.com/users/IanJBriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/IanJBriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanJBriggs/subscriptions","organizations_url":"https://api.github.com/users/IanJBriggs/orgs","repos_url":"https://api.github.com/users/IanJBriggs/repos","events_url":"https://api.github.com/users/IanJBriggs/events{/privacy}","received_events_url":"https://api.github.com/users/IanJBriggs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-07T10:49:20Z","updated_at":"2015-05-08T17:51:53Z","closed_at":null,"body":"I have set up Refile to use CloudFront using:\r\n\r\nRefile.host = \"//cdn.example.com\"\r\n\r\nRails also uses this CDN URL to serve static assets successfully. I am able to see the assets start populating on the popular objects table in Amazons CloudFront service area.\r\n\r\nHowever I dont see any objects from the Refile store. None. Upload is fine. I look at the URL in production on some images and it looks like:\r\n\r\n/attachments/store/[GUID]/avatar\r\n\r\nThis is because its mounted to /attachments which I understand, but because its now using the CDN as a host should this not change? \r\n\r\nWhy am I not seeing any images recored by CloudFront??\r\n\r\nIan"},"comment":{"url":"https://api.github.com/repos/refile/refile/issues/comments/100311003","html_url":"https://github.com/refile/refile/issues/217#issuecomment-100311003","issue_url":"https://api.github.com/repos/refile/refile/issues/217","id":100311003,"user":{"login":"jnicklas","id":134,"avatar_url":"https://avatars.githubusercontent.com/u/134?v=3","gravatar_id":"","url":"https://api.github.com/users/jnicklas","html_url":"https://github.com/jnicklas","followers_url":"https://api.github.com/users/jnicklas/followers","following_url":"https://api.github.com/users/jnicklas/following{/other_user}","gists_url":"https://api.github.com/users/jnicklas/gists{/gist_id}","starred_url":"https://api.github.com/users/jnicklas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnicklas/subscriptions","organizations_url":"https://api.github.com/users/jnicklas/orgs","repos_url":"https://api.github.com/users/jnicklas/repos","events_url":"https://api.github.com/users/jnicklas/events{/privacy}","received_events_url":"https://api.github.com/users/jnicklas/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T17:51:53Z","updated_at":"2015-05-08T17:51:53Z","body":"Seems like the URL is not fully qualified. My guess would be that `Refile.host` is not getting set for some reason. Double check that you're setting it to the right value."}}