{"action":"opened","issue":{"url":"https://api.github.com/repos/LearningLocker/deploy/issues/35","repository_url":"https://api.github.com/repos/LearningLocker/deploy","labels_url":"https://api.github.com/repos/LearningLocker/deploy/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/LearningLocker/deploy/issues/35/comments","events_url":"https://api.github.com/repos/LearningLocker/deploy/issues/35/events","html_url":"https://github.com/LearningLocker/deploy/issues/35","id":264278174,"number":35,"title":"Look for and replace ` API_PORT` in nginx.conf","user":{"login":"ht2","id":1352590,"avatar_url":"https://avatars1.githubusercontent.com/u/1352590?v=4","gravatar_id":"","url":"https://api.github.com/users/ht2","html_url":"https://github.com/ht2","followers_url":"https://api.github.com/users/ht2/followers","following_url":"https://api.github.com/users/ht2/following{/other_user}","gists_url":"https://api.github.com/users/ht2/gists{/gist_id}","starred_url":"https://api.github.com/users/ht2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ht2/subscriptions","organizations_url":"https://api.github.com/users/ht2/orgs","repos_url":"https://api.github.com/users/ht2/repos","events_url":"https://api.github.com/users/ht2/events{/privacy}","received_events_url":"https://api.github.com/users/ht2/received_events","type":"User","site_admin":false},"labels":[{"id":670932543,"url":"https://api.github.com/repos/LearningLocker/deploy/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"gardron","id":29887699,"avatar_url":"https://avatars0.githubusercontent.com/u/29887699?v=4","gravatar_id":"","url":"https://api.github.com/users/gardron","html_url":"https://github.com/gardron","followers_url":"https://api.github.com/users/gardron/followers","following_url":"https://api.github.com/users/gardron/following{/other_user}","gists_url":"https://api.github.com/users/gardron/gists{/gist_id}","starred_url":"https://api.github.com/users/gardron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gardron/subscriptions","organizations_url":"https://api.github.com/users/gardron/orgs","repos_url":"https://api.github.com/users/gardron/repos","events_url":"https://api.github.com/users/gardron/events{/privacy}","received_events_url":"https://api.github.com/users/gardron/received_events","type":"User","site_admin":false},"assignees":[{"login":"gardron","id":29887699,"avatar_url":"https://avatars0.githubusercontent.com/u/29887699?v=4","gravatar_id":"","url":"https://api.github.com/users/gardron","html_url":"https://github.com/gardron","followers_url":"https://api.github.com/users/gardron/followers","following_url":"https://api.github.com/users/gardron/following{/other_user}","gists_url":"https://api.github.com/users/gardron/gists{/gist_id}","starred_url":"https://api.github.com/users/gardron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gardron/subscriptions","organizations_url":"https://api.github.com/users/gardron/orgs","repos_url":"https://api.github.com/users/gardron/repos","events_url":"https://api.github.com/users/gardron/events{/privacy}","received_events_url":"https://api.github.com/users/gardron/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-10-10T15:42:03Z","updated_at":"2017-10-10T15:42:03Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am looking to implement a new nginx rule as follows:\r\n\r\n```nginx\r\n  location /api(.*)$ {\r\n    proxy_pass http://127.0.0.1:API_PORT$1$is_args$args;\r\n  }\r\n```\r\n\r\nOne area where I could see these tripping you up, a `sed` on `API_PORT` will match the `XAPI_PORT`! Make sure that's handed (I guess `sed` the XAPI_PORT first?)\r\n\r\nOnce this is included in the script, I will move to add it to the actual LL codebase so that no one installs a broken nginx rule (the current script wouldn't switch it out and therefore would fail to proxy pass)"}}
{"actor":{"display_login":"ht2"}}