can someone please point me at some documentation that explain how accessing the gateway web portal work remotely? Basically, I took off my phone from the wifi, and I can still access the sub-domain I created and login as the user I created and control the lights.
is the gateway poling? or listening on some websocket? are my things synced to the cloud?
sorry, if I had missed some documentation and asking this question.
Essentially, the gateway initiates a secure tunnel with the AWS server. All *.mozilla-iot.org domains resolve to the AWS server’s IP address, but we do some magic to map that domain to the proper PageKite tunnel.
You can’t really use self-signed certificates in conjunction with a .mozilla-iot.org subdomain, because the certificates need to be generated by LetsEncrypt on behalf of Mozilla in ordered to be trusted by browsers.
You either need to opt into the .mozilla-iot.org subdomain during first time setup and allow LetsEncrypt to automatically generate the certificates for you, or choose your own domain (or local host) and generate your own certificates.
If you’re running the gateway on a Raspberry Pi you might be better off using the pre-built image (instructions on the blog) which also does other useful things like configure iptables so the gateway process doesn’t have to run as root to run on port 80/443.
If you want to configure a custom domain yourself, you just need to point that domain at your IP address, but if you Raspberry Pi is behind a firewall you’ll need to open up ports on your router and forward them to the Raspberry Pi. This is something else the pre-built image solves automatically, by using a tunnelling service.
This bug is marked as a ‘story’ in github. Is this linked to a trello or jira story that is public in some way that I can look at to potentially contribute to?
How do I trigger the first time setup on a gateway that skipped that process originally?
I’m afraid there’s not yet an easy way to do that, though it will eventually be part of the Settings UI. Someone may be able to tell you the exact things you need to delete from the database in order to re-trigger first time setup, but otherwise your best bet is probably to re-flash a fresh image.
I’ve already created a personal registration-server per the registration-server-docker. What steps do I need to point the UI app to that private server now that it is configured to replace the public server?
Hi Michael, question about PageKite, I have tried using it with my own web service, running on a pi, and it is so slow its totally unusable. I am not hosting the relay, but using the one offered by pagekite. Did you guys do anything special on your host / relay side do speed up the speed?, Your speed is great… thanks ,
Hi Micheal, I’ve gotten the configurations on the registration-server set up as well as setting up the front-end tunneling params but Im not getting a response back in the browser when making the <IPAddress>/settings/subscribe call. All of the conf files have been configured per your readme. If I make the telnet the server ip address I’m able connect just fine. Container is running and nginx is running. Is there a way to test that the configuration is done correctly? Im using google cloud and it could be firewall related. Im unsure where to go from this point. Your help would be appreciated.
hello,
I’m writing a web service running on a pi like you.
could you please help me and guide how did you change your web things properties by your own web service?
I want to use my own gateway instead of mozilla gateway.so I need to know how to call web things directly, to send them PUT requsets(with no need to have the gateway address for extended web thing url)