Create temp_dir config, use in front cache and image config