Create a dummy pod using below command kubectl run debug-pod --image=curlimages/curl:latest --command -- sleep infinity kubectl exec -it mysqldb-0 -- /bin/sh curl http://:port/path
check for the curl response
When deploying in kubernetes environment change the DB host name or hostIP in backend application Dockerfile as well as in /backend/db/conn.js
Also the backend URL is configured in frontend route.js which need to be edited
Also there are some unwanted newrelic configuration, find it and remove it.
This guide explains how to enable HTTPS for your application using either a self-signed certificate (without a domain name) or a Let's Encrypt certificate (with a domain name).
sudo apt update
sudo apt install -y certbot python3-certbot-nginx nginxsudo ufw allow 'Nginx Full'sudo vi /etc/nginx/sites-available/ema
sudo rm /etc/nginx/sites-enabled/ema
sudo ln -s /etc/nginx/sites-available/ema /etc/nginx/sites-enabled/sudo nginx -t
sudo systemctl restart nginxsudo mkdir -p /etc/nginx/ssl
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx-selfsigned.key -out /etc/nginx/ssl/nginx-selfsigned.crtCreate or update your Nginx configuration file (e.g., /etc/nginx/sites-available/ema):
server {
listen 80;
server_name 44.223.103.14;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name 44.223.103.14;
ssl_certificate /etc/nginx/ssl/nginx-selfsigned.crt;
ssl_certificate_key /etc/nginx/ssl/nginx-selfsigned.key;
location / {
