Fix config middleware in Livereload
Get host name by prefs in Upload