{"action":"opened","number":626,"pull_request":{"url":"https://api.github.com/repos/ngageoint/scale/pulls/626","id":94403939,"html_url":"https://github.com/ngageoint/scale/pull/626","diff_url":"https://github.com/ngageoint/scale/pull/626.diff","patch_url":"https://github.com/ngageoint/scale/pull/626.patch","issue_url":"https://api.github.com/repos/ngageoint/scale/issues/626","number":626,"state":"open","locked":false,"title":"#569: Correct Django SCRIPT_NAME behind DCOS and Marathon LB","user":{"login":"gisjedi","id":4768496,"avatar_url":"https://avatars.githubusercontent.com/u/4768496?v=3","gravatar_id":"","url":"https://api.github.com/users/gisjedi","html_url":"https://github.com/gisjedi","followers_url":"https://api.github.com/users/gisjedi/followers","following_url":"https://api.github.com/users/gisjedi/following{/other_user}","gists_url":"https://api.github.com/users/gisjedi/gists{/gist_id}","starred_url":"https://api.github.com/users/gisjedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gisjedi/subscriptions","organizations_url":"https://api.github.com/users/gisjedi/orgs","repos_url":"https://api.github.com/users/gisjedi/repos","events_url":"https://api.github.com/users/gisjedi/events{/privacy}","received_events_url":"https://api.github.com/users/gisjedi/received_events","type":"User","site_admin":false},"body":"Django uses WSGI SCRIPT_NAME environment values to identify what the context it is running within. Optimally, we would have 2 contexts configured (/service/scale/api and /api). The first would support DCOS Admin UI and the 2nd Marathon LB. Unfortunately, there is no way to get DCOS Admin to reverse proxy to the /service/scale endpoint as it is explicltly set to only proxy to the root context.\r\n\r\nThe workaround is to set the default behavior of Scale webserver to operate at `/scale/service/api` and use a header injected by Marathon LB (haProxy) to tell the Scale WSGI connector to operate at `/api`. This logic can be found in `scale/wsgi.py`\r\n\r\nThis pull request also removes gunicorn, as configuration of WSGI environments is significantly complicated when there is a second reverse proxy in front of the WSGI server. Apache is now directly launching Django with mod_wsgi running in daemonized mode.","created_at":"2016-11-18T17:32:07Z","updated_at":"2016-11-18T17:32:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ngageoint/scale/pulls/626/commits","review_comments_url":"https://api.github.com/repos/ngageoint/scale/pulls/626/comments","review_comment_url":"https://api.github.com/repos/ngageoint/scale/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ngageoint/scale/issues/626/comments","statuses_url":"https://api.github.com/repos/ngageoint/scale/statuses/12050714d5025358eb7807f789481714cf8a74e0","head":{"label":"ngageoint:issue-569","ref":"issue-569","sha":"12050714d5025358eb7807f789481714cf8a74e0","user":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"repo":{"id":46419785,"name":"scale","full_name":"ngageoint/scale","owner":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ngageoint/scale","description":"Containerized processing framework for algorithms focused on remote sensing","fork":false,"url":"https://api.github.com/repos/ngageoint/scale","forks_url":"https://api.github.com/repos/ngageoint/scale/forks","keys_url":"https://api.github.com/repos/ngageoint/scale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngageoint/scale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngageoint/scale/teams","hooks_url":"https://api.github.com/repos/ngageoint/scale/hooks","issue_events_url":"https://api.github.com/repos/ngageoint/scale/issues/events{/number}","events_url":"https://api.github.com/repos/ngageoint/scale/events","assignees_url":"https://api.github.com/repos/ngageoint/scale/assignees{/user}","branches_url":"https://api.github.com/repos/ngageoint/scale/branches{/branch}","tags_url":"https://api.github.com/repos/ngageoint/scale/tags","blobs_url":"https://api.github.com/repos/ngageoint/scale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngageoint/scale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngageoint/scale/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngageoint/scale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngageoint/scale/statuses/{sha}","languages_url":"https://api.github.com/repos/ngageoint/scale/languages","stargazers_url":"https://api.github.com/repos/ngageoint/scale/stargazers","contributors_url":"https://api.github.com/repos/ngageoint/scale/contributors","subscribers_url":"https://api.github.com/repos/ngageoint/scale/subscribers","subscription_url":"https://api.github.com/repos/ngageoint/scale/subscription","commits_url":"https://api.github.com/repos/ngageoint/scale/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngageoint/scale/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngageoint/scale/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngageoint/scale/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngageoint/scale/contents/{+path}","compare_url":"https://api.github.com/repos/ngageoint/scale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngageoint/scale/merges","archive_url":"https://api.github.com/repos/ngageoint/scale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngageoint/scale/downloads","issues_url":"https://api.github.com/repos/ngageoint/scale/issues{/number}","pulls_url":"https://api.github.com/repos/ngageoint/scale/pulls{/number}","milestones_url":"https://api.github.com/repos/ngageoint/scale/milestones{/number}","notifications_url":"https://api.github.com/repos/ngageoint/scale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngageoint/scale/labels{/name}","releases_url":"https://api.github.com/repos/ngageoint/scale/releases{/id}","deployments_url":"https://api.github.com/repos/ngageoint/scale/deployments","created_at":"2015-11-18T13:16:09Z","updated_at":"2016-11-09T21:54:28Z","pushed_at":"2016-11-18T17:24:06Z","git_url":"git://github.com/ngageoint/scale.git","ssh_url":"git@github.com:ngageoint/scale.git","clone_url":"https://github.com/ngageoint/scale.git","svn_url":"https://github.com/ngageoint/scale","homepage":"http://ngageoint.github.io/scale/","size":185319,"stargazers_count":47,"watchers_count":47,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":156,"forks":20,"open_issues":156,"watchers":47,"default_branch":"master"}},"base":{"label":"ngageoint:master","ref":"master","sha":"ab2f75ea2a3369d8555bdee8adb9a592e819ee7e","user":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"repo":{"id":46419785,"name":"scale","full_name":"ngageoint/scale","owner":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ngageoint/scale","description":"Containerized processing framework for algorithms focused on remote sensing","fork":false,"url":"https://api.github.com/repos/ngageoint/scale","forks_url":"https://api.github.com/repos/ngageoint/scale/forks","keys_url":"https://api.github.com/repos/ngageoint/scale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngageoint/scale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngageoint/scale/teams","hooks_url":"https://api.github.com/repos/ngageoint/scale/hooks","issue_events_url":"https://api.github.com/repos/ngageoint/scale/issues/events{/number}","events_url":"https://api.github.com/repos/ngageoint/scale/events","assignees_url":"https://api.github.com/repos/ngageoint/scale/assignees{/user}","branches_url":"https://api.github.com/repos/ngageoint/scale/branches{/branch}","tags_url":"https://api.github.com/repos/ngageoint/scale/tags","blobs_url":"https://api.github.com/repos/ngageoint/scale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngageoint/scale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngageoint/scale/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngageoint/scale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngageoint/scale/statuses/{sha}","languages_url":"https://api.github.com/repos/ngageoint/scale/languages","stargazers_url":"https://api.github.com/repos/ngageoint/scale/stargazers","contributors_url":"https://api.github.com/repos/ngageoint/scale/contributors","subscribers_url":"https://api.github.com/repos/ngageoint/scale/subscribers","subscription_url":"https://api.github.com/repos/ngageoint/scale/subscription","commits_url":"https://api.github.com/repos/ngageoint/scale/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngageoint/scale/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngageoint/scale/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngageoint/scale/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngageoint/scale/contents/{+path}","compare_url":"https://api.github.com/repos/ngageoint/scale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngageoint/scale/merges","archive_url":"https://api.github.com/repos/ngageoint/scale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngageoint/scale/downloads","issues_url":"https://api.github.com/repos/ngageoint/scale/issues{/number}","pulls_url":"https://api.github.com/repos/ngageoint/scale/pulls{/number}","milestones_url":"https://api.github.com/repos/ngageoint/scale/milestones{/number}","notifications_url":"https://api.github.com/repos/ngageoint/scale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngageoint/scale/labels{/name}","releases_url":"https://api.github.com/repos/ngageoint/scale/releases{/id}","deployments_url":"https://api.github.com/repos/ngageoint/scale/deployments","created_at":"2015-11-18T13:16:09Z","updated_at":"2016-11-09T21:54:28Z","pushed_at":"2016-11-18T17:24:06Z","git_url":"git://github.com/ngageoint/scale.git","ssh_url":"git@github.com:ngageoint/scale.git","clone_url":"https://github.com/ngageoint/scale.git","svn_url":"https://github.com/ngageoint/scale","homepage":"http://ngageoint.github.io/scale/","size":185319,"stargazers_count":47,"watchers_count":47,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":156,"forks":20,"open_issues":156,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ngageoint/scale/pulls/626"},"html":{"href":"https://github.com/ngageoint/scale/pull/626"},"issue":{"href":"https://api.github.com/repos/ngageoint/scale/issues/626"},"comments":{"href":"https://api.github.com/repos/ngageoint/scale/issues/626/comments"},"review_comments":{"href":"https://api.github.com/repos/ngageoint/scale/pulls/626/comments"},"review_comment":{"href":"https://api.github.com/repos/ngageoint/scale/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ngageoint/scale/pulls/626/commits"},"statuses":{"href":"https://api.github.com/repos/ngageoint/scale/statuses/12050714d5025358eb7807f789481714cf8a74e0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":11,"additions":91,"deletions":61,"changed_files":12}}
{"actor":{"display_login":"gisjedi"}}