added listen_ip to the conf file

This commit is contained in:
gashapwn 2020-11-27 00:05:48 +00:00
parent 30d1cbe904
commit 427e617c78
2 changed files with 3 additions and 1 deletions

3
app.py
View File

@ -115,4 +115,5 @@ if __name__=="__main__":
app.add_url_rule('/login', 'login', login, methods = ['POST', 'GET'])
app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET'])
app.add_url_rule('/req/signup', 'signup', signup, methods = ['POST'])
app.run(host="104.248.118.130",debug=True)
# app.run(host="104.248.118.130",debug=True)
app.run(host=conf_obj["listen_ip"],debug=True)

View File

@ -1,5 +1,6 @@
{
"instance_name": "lingy.in",
"listen_ip": "104.248.118.130",
"shell": {
"SHELL_BASH": "/usr/local/bin/bash",
"SHELL_KSH": "/bin/ksh"