Hi!
Still super-impressed with your software. My remote sensor is not getting enough sun to keep it's battery charged, but that is not your problem, and I can trace when it happens easily since shifting to Mycodo. http://iotdata.nz
Question - Before creating the Mycodo server and routing iotdata.nz traffic to it, I had a very simple website using that IP.
Here is an example of a page I used: http://rata.co.nz:800/monitor/ I would like to be able to access this using Nginx. Something like: http://iotdata.nz/monitor
Can I create a page that will work in this way?
Thanks!
Steve
The Mycodo nginx config file is located at Mycodo/install/mycodoflask_nginx.conf, which is copied to /etc/nginx/sites-enabled/default during install and upgrade. After install, you can modify this to suit your needs. Keep in mind that you will need to make the same changes (or restore a backup) after a Mycodo upgrade, as the upgrade script reinstalls this conf file.
Mycodo Developer
Thanks.
My understanding is that /etc/nginx/sites-enabled/default doesn't contain a document root directive, and nginx is compiled with --prefix=/usr/share/nginx
That folder contains only the default index.html file
pi@Mycodo:/etc/nginx $ sudo ls -l /usr/share/nginx/html/ total 4 -rw-r--r-- 1 root root 612 Dec 5 2018 index.html
I have created a very simple HTML file test.html which I have tried putting in:
/var/www/html/ /usr/share/nginx/html/
.. then tried to access this file as:
Can you identify what I'm doing wrong please?
Thanks! Steve
Mycodo uses sockets for connecting to gunicorn to serve Mycodo's frontend. This is all I'm familiar with in regard to nginx. Any other configuration outside this I can't really help with.
Mycodo Developer