So I have a Raspberry Pi that collects data and sends it to a flask server. I want to get data over to android app that I built. I was able to do this on the local network through flask by sending a get request from the android app to the flask server.
I then followed this tutorial from digital ocean and set up a nginx server that would be publicly available. When it came time to enter a domain, I entered my personal domain. The problem is that that domain currently points to a Wix website.
Calling get requests to my domain simply loads the website. I’ve experimented with backend code on Wix and I tried fetch(request) but that returns undefined. Perhaps that’s an issue on the nginx side, but I don’t think so. The logs look ok. I’ve looked into all of the following and I don’t know which avenue could yield success. So I don’t know where to spend my time learning.
Rabbit holes I’ve gone down:
- backend javascript in the website (e.g. fetch())
- setting up an api
- routing in Wix
- creating a subdomain
- using a different location on my subdomain (wix loads a page that says no page found or something similar)
- setting up a proxy server
- setting up a reverse proxy server
- moving my domain away from Wix entirely.
Thank you for your time and any help towards ending this confusion would be greatly appreciated!
Edit: I should add that I did set up portforwarding on my router.
7 posts - 2 participants