This commit is contained in:
tusuii
2026-02-19 19:34:26 +05:30
commit 4b26a49776
8 changed files with 495 additions and 0 deletions

35
04-backend-configmap.yaml Normal file
View File

@@ -0,0 +1,35 @@
# Backend ConfigMap — non-sensitive configuration
#
# BEFORE APPLYING:
# Replace <NODE_IP> with the actual IP of any node in your cluster.
# Run: kubectl get nodes -o wide to find the IP.
---
apiVersion: v1
kind: ConfigMap
metadata:
name: backend-config
namespace: ecommerce
data:
NODE_ENV: "production"
PORT: "3000"
HOST: "0.0.0.0"
JWT_EXPIRES_IN: "7d"
JWT_REFRESH_EXPIRES_IN: "30d"
# AWS S3 / MinIO
AWS_REGION: "us-east-1"
AWS_S3_BUCKET: "e-commerce"
AWS_ENDPOINT: "s3.sahasrarameta.tech"
AWS_PORT: "443"
AWS_SSL: "true"
# Paytm
PAYTM_WEBSITE: "WEBSTAGING"
PAYTM_CHANNEL_ID: "WEB"
PAYTM_INDUSTRY_TYPE: "Retail"
PAYTM_HOST: "securegw-stage.paytm.in"
# Frontend origin — replace <NODE_IP> with your cluster node's IP
FRONTEND_URL: "http://<NODE_IP>:30800"
CORS_ORIGIN: "http://<NODE_IP>:30800"