tis af fam, dees was wel de minst plezante om te doen

This commit is contained in:
2020-03-11 11:51:20 +01:00
parent 65bdd82116
commit abc959da18
16 changed files with 104 additions and 43 deletions

View File

@@ -3,7 +3,7 @@ import requests
app = Flask(__name__)
URL = "http://server-check:6000"
URL = "http://server-check.service.consul"
@app.errorhandler(404)
def page_not_found(error):
@@ -35,4 +35,4 @@ def findServer(name, port):
return requests.get("http://"+name+":"+port)
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=5000)
app.run(debug=True, host="0.0.0.0", port=80)