{"action":"closed","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/7325","repository_url":"https://api.github.com/repos/zulip/zulip","labels_url":"https://api.github.com/repos/zulip/zulip/issues/7325/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/7325/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/7325/events","html_url":"https://github.com/zulip/zulip/issues/7325","id":272240802,"number":7325,"title":"production installer: Add server script to sign up for push notifications.","user":{"login":"rishig","id":890911,"avatar_url":"https://avatars2.githubusercontent.com/u/890911?v=4","gravatar_id":"","url":"https://api.github.com/users/rishig","html_url":"https://github.com/rishig","followers_url":"https://api.github.com/users/rishig/followers","following_url":"https://api.github.com/users/rishig/following{/other_user}","gists_url":"https://api.github.com/users/rishig/gists{/gist_id}","starred_url":"https://api.github.com/users/rishig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishig/subscriptions","organizations_url":"https://api.github.com/users/rishig/orgs","repos_url":"https://api.github.com/users/rishig/repos","events_url":"https://api.github.com/users/rishig/events{/privacy}","received_events_url":"https://api.github.com/users/rishig/received_events","type":"User","site_admin":false},"labels":[{"id":527394696,"url":"https://api.github.com/repos/zulip/zulip/labels/area:%20production%20installer","name":"area: production installer","color":"bfd4f2","default":false},{"id":273621476,"url":"https://api.github.com/repos/zulip/zulip/labels/good%20first%20issue","name":"good first issue","color":"bfe5bf","default":true},{"id":265216832,"url":"https://api.github.com/repos/zulip/zulip/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":545030708,"url":"https://api.github.com/repos/zulip/zulip/labels/in%20progress","name":"in progress","color":"bfdadc","default":false},{"id":621149055,"url":"https://api.github.com/repos/zulip/zulip/labels/priority:%20high","name":"priority: high","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"timabbott","id":2746074,"avatar_url":"https://avatars0.githubusercontent.com/u/2746074?v=4","gravatar_id":"","url":"https://api.github.com/users/timabbott","html_url":"https://github.com/timabbott","followers_url":"https://api.github.com/users/timabbott/followers","following_url":"https://api.github.com/users/timabbott/following{/other_user}","gists_url":"https://api.github.com/users/timabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/timabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timabbott/subscriptions","organizations_url":"https://api.github.com/users/timabbott/orgs","repos_url":"https://api.github.com/users/timabbott/repos","events_url":"https://api.github.com/users/timabbott/events{/privacy}","received_events_url":"https://api.github.com/users/timabbott/received_events","type":"User","site_admin":false},"assignees":[{"login":"timabbott","id":2746074,"avatar_url":"https://avatars0.githubusercontent.com/u/2746074?v=4","gravatar_id":"","url":"https://api.github.com/users/timabbott","html_url":"https://github.com/timabbott","followers_url":"https://api.github.com/users/timabbott/followers","following_url":"https://api.github.com/users/timabbott/following{/other_user}","gists_url":"https://api.github.com/users/timabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/timabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timabbott/subscriptions","organizations_url":"https://api.github.com/users/timabbott/orgs","repos_url":"https://api.github.com/users/timabbott/repos","events_url":"https://api.github.com/users/timabbott/events{/privacy}","received_events_url":"https://api.github.com/users/timabbott/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-11-08T15:31:40Z","updated_at":"2018-05-04T04:28:56Z","closed_at":"2018-05-04T04:28:56Z","author_association":"COLLABORATOR","body":"Currently, in order to sign up for push notifications, server admins have to email a support address and wait for someone to service the request. It would be better for everyone to make this more automatic.\r\n\r\nThe task is to add a script `scripts/setup/register-server` that sends the EXTERNAL_HOST, ZULIP_ADMINISTRATOR, zulip_org_id, and zulip_org_key to an endpoint on zulipchat.com (like /remotes/register).\r\n\r\nI would structure the script so that the transcript of an interaction looks something like:\r\n```\r\nThis script will register your server with the Zulip push notification bouncer service.\r\nYou can read more about the service at \r\n    http://zulip.readthedocs.io/en/latest/prod-mobile-push-notifications.html. \r\n\r\nHostname (EXTERNAL_HOST): xxx\r\nContact email (ZULIP_ADMINISTRATOR): xxx\r\nIs the information above correct? We recommend using an email address \r\nlike ops@ that will outlast changes in personnel. [Y/n]\r\n\r\nWould you like to sign up for the zulip-announce mailing list?\r\nUsed for new releases, security advisories, updates to the \r\nterms of service, etc. (~1 email/mo.) [Y/n]\r\n\r\nUse of the bouncer is subject to the Zulip Terms of Service at https://zulipchat.com/terms/.\r\nDo you agree to those terms? [Y/n]\r\n\r\nRegistering server ...\r\nServer successfully registered.\r\n\r\nSee http://zulip.readthedocs.io/en/latest/prod-mobile-push-notifications.html\r\nfor instructions on how to enable and test mobile notifications on your server.\r\n```\r\n\r\nAnd various error situations:\r\n* At the beginning, check if they have the four things set to non-default values, and if they don't print an appropriate error message, like: \"Please set EXTERNAL_HOST in /etc/zulip/settings.py.\", or \"Please run scripts/setup/generate_secrets.py first.\"\r\n* The backend route should return success, or failure if either the zulip_org_id or hostname already has an entry. In that case we can print \"Server already registered. Please email support@zulipchat.com to update registration information.\""}}
{"actor":{"display_login":"timabbott"}}