-# the base URL path at which motionEye lives
-# change this if you run motionEye behind a reverse proxy (e.g. nginx),
-# and you want to make motionEye accessible at a specific base path (e.g. /cams)
-#base_path /cams
-
# path to the configuration directory (must be writable by motionEye)
conf_path /etc/motioneye
logging.fatal('failed to read settings from "%s": %s' % (config_file, e))
sys.exit(-1)
- # use the config file directory as base path
+ # use the config file directory as base dir
# if not specified otherwise in the config file
base_dir = os.path.dirname(config_file)
settings._config_file = config_file
smbctl.start()
logging.info('smb mounts started')
- template.add_context('static_path', settings.BASE_PATH + '/static/')
- template.add_context('base_path', settings.BASE_PATH + '/')
+ template.add_context('static_path', 'static/')
application = Application(handler_mapping, debug=False, log_function=_log_request,
static_path=settings.STATIC_PATH, static_url_prefix='/static/')
# the static files directory
STATIC_PATH = os.path.join(PROJECT_PATH, 'static')
-# static files (.css, .js etc) are served at this root url;
-# change this if you run motionEye behind a reverse proxy (e.g. nginx),
-# and you want static files to be served directly by it
-BASE_PATH = ''
-
# path to the configuration directory (must be writable by motionEye)
CONF_PATH = [sys.prefix, ''][sys.prefix == '/usr'] + '/etc/motioneye'
<link rel="stylesheet" type="text/css" href="{{static_path}}css/jquery.timepicker.css" />
<link rel="shortcut icon" href="{{static_path}}favicon.ico" />
<link rel="apple-touch-icon" href="{{static_path}}favicon.ico" />
- <link rel="manifest" href="{{base_path}}manifest.json" />
+ <link rel="manifest" href="manifest.json" />
{% endblock %}
{% block script %}
<script type="text/javascript" src="{{static_path}}js/css-browser-selector.js"></script>