add server_restapihostname variable
diff --git a/xos/xos/settings.py b/xos/xos/settings.py
index ba47d72..07b4843 100644
--- a/xos/xos/settings.py
+++ b/xos/xos/settings.py
@@ -257,7 +257,7 @@
}
}
-RESTAPI_HOSTNAME = getattr(config, "server_hostname", socket.gethostname())
+RESTAPI_HOSTNAME = getattr(config, "server_restapihostname", getattr(config, "server_hostname", socket.gethostname()))
RESTAPI_PORT = int(getattr(config, "server_port", "8000"))
BIGQUERY_TABLE = getattr(config, "bigquery_table", "demoevents")