diff --git a/install b/install index 154fa1af16d7253864282328f7dd3c2d3cfd34ff..862f863cd32368a149c5fc9f4bf1624903da4758 100755 --- a/install +++ b/install @@ -38,7 +38,3 @@ systemctl status webapps-deliverer.service EOF exit - - - -exit diff --git a/server.py b/server.py index 097303744bda7c1a8b588ead81e6180d54611197..40c5a6acee6fe43a71315e88ce4931d1b60350a3 100644 --- a/server.py +++ b/server.py @@ -48,7 +48,7 @@ def lib(fn): The following works like a proxy server: A flask server URL of the form - "http://127.0.0.1:5000/5984/vl_db/000_SERVERS" + "http://127.0.0.1:8081/5984/vl_db/000_SERVERS" will be forwarded to the real CouchDB URL "http://127.0.0.1:5984/vl_db/000_SERVERS" @@ -58,7 +58,7 @@ https://stackoverflow.com/questions/6656363/proxying-to-another-web-service-with @app.route('/{}/'.format(COUCHDB_PORT), \ methods=['GET','PUT','POST','HEAD','DELETE','OPTIONS']) @app.route('/{}/<path:p>'.format(COUCHDB_PORT), - methods=['GET','PUSH','POST','DELETE']) + methods=['GET','PUT','POST','HEAD','DELETE','OPTIONS']) def couchdb_proxy(p=''): q = request.query_string.decode(); if q: @@ -84,6 +84,6 @@ def couchdb_proxy(p=''): return response if __name__ == '__main__': - app.config["ENV"] = FLASK_ENV - app.config["DEBUG"] = FLASK_DEBUG + app.config['ENV'] = FLASK_ENV + app.config['DEBUG'] = FLASK_DEBUG app.run(host='0.0.0.0', port=FLASK_RUN_PORT)