comparison libervia/server/server.py @ 1228:f3edbca73713

server: user ProtectedFile for build dir
author Goffi <goffi@goffi.org>
date Mon, 18 Nov 2019 21:46:12 +0100
parents 62bf4f87c249
children 5bd801bd36aa
comparison
equal deleted inserted replaced
1227:15f90fd688b5 1228:f3edbca73713
802 site_path=site_path) 802 site_path=site_path)
803 tasks_manager = TasksManager(self, res) 803 tasks_manager = TasksManager(self, res)
804 yield tasks_manager.runTasks() 804 yield tasks_manager.runTasks()
805 res.putChild( 805 res.putChild(
806 C.BUILD_DIR.encode('utf-8'), 806 C.BUILD_DIR.encode('utf-8'),
807 static.File(self.getBuildPath(site_name), 807 ProtectedFile(
808 defaultType="application/octet-stream"), 808 self.getBuildPath(site_name),
809 defaultType="application/octet-stream"),
809 ) 810 )
810 811
811 LiberviaPage.importPages(self, res) 812 LiberviaPage.importPages(self, res)
812 # FIXME: default pages are accessible if not overriden by external website 813 # FIXME: default pages are accessible if not overriden by external website
813 # while necessary for login or re-using existing pages 814 # while necessary for login or re-using existing pages