{"action":"created","issue":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/424","labels_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/424/comments","events_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/424/events","html_url":"https://github.com/pencilblue/pencilblue/issues/424","id":53664992,"number":424,"title":"Question about Media/Proxy","user":{"login":"weaverhe","id":6454985,"avatar_url":"https://avatars.githubusercontent.com/u/6454985?v=3","gravatar_id":"","url":"https://api.github.com/users/weaverhe","html_url":"https://github.com/weaverhe","followers_url":"https://api.github.com/users/weaverhe/followers","following_url":"https://api.github.com/users/weaverhe/following{/other_user}","gists_url":"https://api.github.com/users/weaverhe/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverhe/subscriptions","organizations_url":"https://api.github.com/users/weaverhe/orgs","repos_url":"https://api.github.com/users/weaverhe/repos","events_url":"https://api.github.com/users/weaverhe/events{/privacy}","received_events_url":"https://api.github.com/users/weaverhe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pencilblue/pencilblue/labels/help+wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-01-07T18:33:06Z","updated_at":"2015-01-15T17:55:36Z","closed_at":"2015-01-09T17:38:23Z","body":"Hey guys,\r\n\r\nSo another question. Here's how I've got our site set up:\r\n- on a server with IP address xx.xxx.xx.xxx\r\n- site root is http://xx.xxx.xx.xxx:4321\r\n- site port is 4321\r\n- in the config file, \"siteIP\" is 0.0.0.0\r\n\r\nWith this config, you can view the site directly at the IP xx.xxx.xx.xxx:4321, in order to log into the admin panel. However, the place we'll actually be sending traffic to is domain.com/pbsite/ .. I've got a location block in my nginx.conf file for the server to proxy the content:\r\n     location /pbsite {\r\n         proxy_pass http://0.0.0.0:4321\r\n     }\r\n\r\nI've been able to get all of the content to load correctly, except for the /media folder which means all images are broken in the posts. Do you know a work-around that I can implement to achieve the desired results, getting the images to load at domain.com/pbsite/? It would be ok if images were broken at the IP address, as long as they load correctly in the customer-facing content.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/comments/70129842","html_url":"https://github.com/pencilblue/pencilblue/issues/424#issuecomment-70129842","issue_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/424","id":70129842,"user":{"login":"weaverhe","id":6454985,"avatar_url":"https://avatars.githubusercontent.com/u/6454985?v=3","gravatar_id":"","url":"https://api.github.com/users/weaverhe","html_url":"https://github.com/weaverhe","followers_url":"https://api.github.com/users/weaverhe/followers","following_url":"https://api.github.com/users/weaverhe/following{/other_user}","gists_url":"https://api.github.com/users/weaverhe/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverhe/subscriptions","organizations_url":"https://api.github.com/users/weaverhe/orgs","repos_url":"https://api.github.com/users/weaverhe/repos","events_url":"https://api.github.com/users/weaverhe/events{/privacy}","received_events_url":"https://api.github.com/users/weaverhe/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T17:55:36Z","updated_at":"2015-01-15T17:55:36Z","body":"Hm. For some reason I'm getting an error:\r\n\r\nTypeError: Object function UrlService() {} has no method 'existsForType'\r\n\r\nIf I print out a variable set to pb.UrlService, I get:\r\n\r\n{ [Function: UrlService]\r\n  exists: [Function],\r\n  urlJoin: [Function],\r\n  getCustomUrl: [Function],\r\n  isExternalUrl: [Function],\r\n  isFullyQualifiedUrl: [Function] }\r\n\r\nWhich is every function associated with UrlService except the one I'm going for :("}}