skip to Main Content

Flask app deployment failed (Liveness probe failed) after "gcloud builds submit …" – Nginx

I am a newbie in frontend/backend/DevOps. But I am in need of using Kubernetes to deploy an app on Google Cloud Platform (GCP) to provide a service. Then I start learning by following this series of tutorials: https://mickeyabhi1999.medium.com/build-and-deploy-a-web-app-with-react-flask-nginx-postgresql-docker-and-google-kubernetes-e586de159a4d https://medium.com/swlh/build-and-deploy-a-web-app-with-react-flask-nginx-postgresql-docker-and-google-kubernetes-341f3b4de322 And…

VIEW QUESTION

Shopify Webhooks Hmac Python verification fails

I am trying to verify the webhook received from Shopify but the Hmac verification fails. def verify_webhook(data, hmac_header): digest = hmac.new(SECRET.encode('utf-8'), data, hashlib.sha256).digest() computed_hmac = base64.b64encode(digest) return hmac.compare_digest(computed_hmac, hmac_header.encode('utf-8')) @app.route('/productCreation', methods=['POST']) def productCreation(): data = request.data verified = verify_webhook( data,…

VIEW QUESTION

Flask add multiple prefix to all routes – Nginx

Here is my nginx conf for my Flask app: server { listen 8888; location /dev1 { proxy_pass http://127.0.0.1:8000/; } location /prod1 { proxy_pass http://127.0.0.1:8001/; } location /prod2 { proxy_pass http://127.0.0.1:8002/; } location /prod3 { proxy_pass http://127.0.0.1:8003/; } } Now if…

VIEW QUESTION
Back To Top
Search