After install MODEP, How to install nginx?

Hi, mod-ui is running Tornado Web Server, using Python3.

You may change the port used by MODEP by changing modep-mod-ui.service file, reloading the configuration and restarting the service:

  1. Copy the modep-mod-ui.service file that comes with modep-mod-ui deb package into a location on the system that will override the original contents:

    sudo cp /lib/systemd/system/modep-mod-ui.service /etc/systemd/system/modep-mod-ui.service
    
  2. Edit the new file:

    sudo nano /etc/systemd/system/modep-mod-ui.service
    
  3. Change ‘80’ to the desired value in this line:

    Environment=MOD_DEVICE_WEBSERVER_PORT=80
    
  4. Ctrl+X, then Y to save and exit. Reload the systemd config and restart the service:

    sudo systemctl daemon-reload
    sudo systemctl restart modep-mod-ui
    

Now, let’s say we used ‘8080’ value, from now on MOD UI will be accessible using ‘http://localhost:8080’ (or IP of Raspberry Pi instead of ‘localhost’ in case using external computer).

And finally, you may fix the stuck nginx install using this command:

sudo dpkg --configure -a