Compare commits
2 Commits
60a22e1b0b
...
95c65836c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95c65836c5 | ||
|
|
cb71431e20 |
6
bbpay.py
6
bbpay.py
@@ -17,7 +17,7 @@ from eth_utils import to_wei
|
||||
load_dotenv()
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
CORS(app, origins=['https://p2pix.co'])
|
||||
api = Api(app)
|
||||
|
||||
class BBPay(Resource):
|
||||
@@ -156,7 +156,7 @@ api.add_resource(Release, '/release/<int:numeroSolicitacao>')
|
||||
if __name__ == '__main__':
|
||||
if getenv("DEBUG"):
|
||||
disable_warnings()
|
||||
app.run(debug=True)
|
||||
app.run(host='::',debug=True)
|
||||
else:
|
||||
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