Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config file for server settings #1

Open
rpappalax opened this issue Aug 17, 2015 · 3 comments
Open

Add config file for server settings #1

rpappalax opened this issue Aug 17, 2015 · 3 comments

Comments

@rpappalax
Copy link

Currently the push update server URL is set in the catfacts.db > customers database
There is only 1 entry:

push = https://updates.push.services.mozilla.com/push/gAAAAABV0hv-H_ppnjUlzzoa8_LP6bIs6WSuPASVWxfVe4vYnivxp1d6o3UvH5srny24N1t7_HZSQ2HpxIua9xzx2gbjTKLam-fy4j2Ut9yMziTxCLAe8_SElsDo8CBQ6lreLVRYbcBPo6WIdup5MgKzO-kbzq5MLALa0JVymoRMpmW3adxvsb4=

Would like to be able to configure the server to point either at production or staging server:
autopush
Production: https://updates.push.services.mozilla.com
Staging: https://updates-autopush.stage.mozaws.net

Thanks!
clevercat

@jrconlin
Copy link
Owner

I think I misunderstood your question. CatFacts doesn't set the Push server, the device does. What happens is that the client app calls the native navigator.push.register() function which returns an endpoint that points to whatever server the device is pointed at. That push endpoint is then sent by the client to the CatFacts server, which just sends facts to that endpoint.

If your device is already set to use Stage or Dev, then Catfacts should use it.

In short, CatFacts doesn't care what you use to Push.

Push

@rpappalax
Copy link
Author

OK, even better. So if I want to point my client to the stage server (using WebIDE), I assume I can re-set dom.push.ServerURL=wss://push.services.mozilla.com/
to
dom.push.ServerURL=wss://push.stage.mozaws.net/ ?

@jrconlin
Copy link
Owner

Yep. that should do it.
catpush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants