sync for dev 033026
This commit is contained in:
@ -21,7 +21,8 @@ app_settings = {
|
||||
"REAL_API_KEY": ''.join(secrets.choice(string.ascii_letters + string.digits) for _ in range(256)),
|
||||
"disable_local_api": False,
|
||||
"local_api_address": "http://10.200.27.20:5000/",
|
||||
"cosmostat_server_ip": "10.200.27.20"
|
||||
"cosmostat_server_ip": "10.200.27.20",
|
||||
"api_bind_ip": "192.168.37.1"
|
||||
}
|
||||
|
||||
with open('cosmostat_settings.yaml', 'r') as f:
|
||||
@ -71,10 +72,7 @@ def service_gateway_ip():
|
||||
return result
|
||||
|
||||
def redis_gateway_ip():
|
||||
if cosmostat_settings["secure_api"]:
|
||||
return cosmostat_bind_ip()
|
||||
else:
|
||||
return "0.0.0.0"
|
||||
return cosmostat_bind_ip()
|
||||
|
||||
def cosmostat_server_api():
|
||||
return cosmostat_settings["cosmostat_server_api"]
|
||||
|
||||
Reference in New Issue
Block a user