config uploaded image host acording to environments