add_remove_cameras=settings.ADD_REMOVE_CAMERAS,
main_sections=main_sections,
camera_sections=camera_sections,
- hostname=socket.gethostname(),
+ hostname=settings.SERVER_NAME,
title=self.get_argument('title', None),
admin_username=config.get_main().get('@admin_username'),
has_streaming_auth=motionctl.has_streaming_auth(),
import logging
import os.path
import sys
+import socket
import motioneye
# enables HTTP basic authentication scheme (in addition to, not instead of the signature mechanism)
HTTP_BASIC_AUTH = False
+
+# provides the possibility to override the hostname
+SERVER_NAME = socket.gethostname()