This GIST contains the files required to be modified in order to run diyHue on non-default HTTP and HTTPS ports.
This example uses ports 8080 for HTTP and 8443 for HTTPS and redirects the necessary paths from NGINX's default site.
The following lines must be changed in the diyHue source code, as there is no option provided to change the ports by default.
If installed in the default location, modify the following lines in /opt/hue-emulator/HueEmulator3.py
:
# Change line 1679 from:
server_address = ('', 443)
# To:
server_address = ('', 8443)
# Change line 1692 from:
server_address = ('', 80)
# To:
server_address = ('', 8080)