]> www.vanbest.org Git - motioneye-debian/commitdiff
#378 Relative path instead of absolute path useful for reverse proxying
authorLeBomb <cambon.olivier@gmail.com>
Mon, 5 Dec 2016 23:21:45 +0000 (00:21 +0100)
committerGitHub <noreply@github.com>
Mon, 5 Dec 2016 23:21:45 +0000 (00:21 +0100)
#378

motioneye/server.py

index 6aded3de166b791e976881315ae30688ce0101a9..62a8fcc6bcd3d99b6561230d465b7ad550ca8a55 100644 (file)
@@ -385,7 +385,7 @@ def run():
         smbctl.start()
         logging.info('smb mounts started')
 
-    template.add_context('static_path', settings.BASE_PATH + '/static/')
+    template.add_context('static_path', 'static/')
     template.add_context('base_path', settings.BASE_PATH + '/')
     
     application = Application(handler_mapping, debug=False, log_function=_log_request,