fix the ip and domain for gallery