only add sld when not running from 'localhost'. SLD can't resolve the sld from localhost