Browse Source

added listen_ip to the conf file

tags/release-00
gashapwn 3 years ago
parent
commit
427e617c78
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      app.py
  2. +1
    -0
      lyadmin.conf.json

+ 2
- 1
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)

+ 1
- 0
lyadmin.conf.json 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"


Loading…
Cancel
Save