first working added config variable gallery_url