def geoserverLocation():
    server = GSHOSTNAME
    port = GSPORT
    server = os.getenv('GSHOSTNAME', server)
    port = os.getenv('GSPORT', port)
    return '%s:%s' % (server, port)
get GSHOSTNAME and GSPORT or use default localhost:8080.
dataset/ETHPy150Open boundlessgeo/gsconfig/test/utils.py/geoserverLocation