Compare commits
2 Commits
60a22e1b0b
...
95c65836c5
| Author | SHA1 | Date | |
|---|---|---|---|
| 95c65836c5 | |||
| cb71431e20 |
@@ -17,7 +17,7 @@ from eth_utils import to_wei
|
|||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app)
|
CORS(app, origins=['https://p2pix.co'])
|
||||||
api = Api(app)
|
api = Api(app)
|
||||||
|
|
||||||
class BBPay(Resource):
|
class BBPay(Resource):
|
||||||
@@ -156,7 +156,7 @@ api.add_resource(Release, '/release/<int:numeroSolicitacao>')
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if getenv("DEBUG"):
|
if getenv("DEBUG"):
|
||||||
disable_warnings()
|
disable_warnings()
|
||||||
app.run(debug=True)
|
app.run(host='::',debug=True)
|
||||||
else:
|
else:
|
||||||
from waitress import serve
|
from waitress import serve
|
||||||
serve(app, host=getenv("HOST","0.0.0.0"), port=getenv("PORT",5000))
|
serve(app, host=getenv("HOST","::"), port=getenv("PORT",5000))
|
||||||
Reference in New Issue
Block a user