{"action":"closed","issue":{"url":"https://api.github.com/repos/AmericanRedCross/posm-build/issues/6","repository_url":"https://api.github.com/repos/AmericanRedCross/posm-build","labels_url":"https://api.github.com/repos/AmericanRedCross/posm-build/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/AmericanRedCross/posm-build/issues/6/comments","events_url":"https://api.github.com/repos/AmericanRedCross/posm-build/issues/6/events","html_url":"https://github.com/AmericanRedCross/posm-build/issues/6","id":128019618,"number":6,"title":"OMK Server - make sure working behind NGINX with ODK Collect","user":{"login":"hallahan","id":556367,"avatar_url":"https://avatars.githubusercontent.com/u/556367?v=3","gravatar_id":"","url":"https://api.github.com/users/hallahan","html_url":"https://github.com/hallahan","followers_url":"https://api.github.com/users/hallahan/followers","following_url":"https://api.github.com/users/hallahan/following{/other_user}","gists_url":"https://api.github.com/users/hallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/hallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallahan/subscriptions","organizations_url":"https://api.github.com/users/hallahan/orgs","repos_url":"https://api.github.com/users/hallahan/repos","events_url":"https://api.github.com/users/hallahan/events{/privacy}","received_events_url":"https://api.github.com/users/hallahan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"hallahan","id":556367,"avatar_url":"https://avatars.githubusercontent.com/u/556367?v=3","gravatar_id":"","url":"https://api.github.com/users/hallahan","html_url":"https://github.com/hallahan","followers_url":"https://api.github.com/users/hallahan/followers","following_url":"https://api.github.com/users/hallahan/following{/other_user}","gists_url":"https://api.github.com/users/hallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/hallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallahan/subscriptions","organizations_url":"https://api.github.com/users/hallahan/orgs","repos_url":"https://api.github.com/users/hallahan/repos","events_url":"https://api.github.com/users/hallahan/events{/privacy}","received_events_url":"https://api.github.com/users/hallahan/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-21T21:07:22Z","updated_at":"2016-04-11T20:49:18Z","closed_at":"2016-04-11T20:49:18Z","body":"Make sure all of the paths work right with the API from behind NGINX, including with ODK Collect.\r\n\r\n`/formList` and `submission` should be top level for the domain with no prefix.\r\n\r\nAll other OpenMapKit Server paths should have a `/omk` prefix.\r\n\r\nTry:\r\n\r\n```\r\nlocation /omk {\r\n  proxy_pass http://127.0.0.1:{{omk_server_port}};\r\n}\r\n\r\nlocation /formList {\r\n  proxy_pass http://127.0.0.1:{{omk_server_port}};\r\n}\r\n\r\nlocation /submission {\r\n  proxy_pass http://127.0.0.1:{{omk_server_port}};\r\n}\r\n```"}}