# Project-specific values for AWS EKS deployment
# This file overrides the base values in my-recipes-chart/values.yaml

global:
  namespace: my-apps

# Backend configuration
backend:
  replicaCount: 2
  image:
    repository: 430842105273.dkr.ecr.eu-central-1.amazonaws.com/my-recipes-backend  # Update with your ECR repository
    tag: "latest"
  
  ingress:
    className: "alb"
    annotations:
      alb.ingress.kubernetes.io/scheme: internet-facing
      alb.ingress.kubernetes.io/target-type: ip
      alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
      # Add your ACM certificate ARN below if you have one
      # alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:..."
    hosts:
      - host: api-my-recipes.aws-dvirlabs.com
        paths:
          - path: /
            pathType: Prefix

# Frontend configuration
frontend:
  replicaCount: 2
  image:
    repository: 430842105273.dkr.ecr.eu-central-1.amazonaws.com/my-recipes-frontend  # Update with your ECR repository
    tag: "latest"
  
  env:
    API_BASE: "https://api-my-recipes.aws-dvirlabs.com"
  
  ingress:
    className: "alb"
    annotations:
      alb.ingress.kubernetes.io/scheme: internet-facing
      alb.ingress.kubernetes.io/target-type: ip
      alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
      # Add your ACM certificate ARN below if you have one
      # alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:..."
    hosts:
      - host: my-recipes.aws-dvirlabs.com
        paths:
          - path: /
            pathType: Prefix
  
  externalUrl: "https://my-recipes.aws-dvirlabs.com"

# PostgreSQL configuration
postgres:
  # For AWS RDS, set this to use external database
  # Leave enabled: true to use in-cluster database
  enabled: false  # Set to false if using RDS
  
  # If using RDS, these values are ignored but kept for reference
  persistence:
    storageClass: "gp3"  # EKS default storage class
    size: 20Gi

# OAuth Configuration
oauth:
  google:
    clientId: "143092846986-hsi59m0on2c9rb5qrdoejfceieao2ioc.apps.googleusercontent.com"
    clientSecret: "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"
    redirectUri: "https://api-my-recipes.aws-dvirlabs.com/auth/google/callback"
  
  azure:
    clientId: "db244cf5-eb11-4738-a2ea-5b0716c9ec0a"
    clientSecret: "Zad8Q~qRBxaQq8up0lLXAq4pHzrVM2JFGFJhHaDp"
    tenantId: "consumers"
    redirectUri: "https://api-my-recipes.aws-dvirlabs.com/auth/azure/callback"

# Email Configuration
email:
  smtpHost: "smtp.gmail.com"
  smtpPort: "587"
  smtpUser: "dvirlabs@gmail.com"
  smtpPassword: "agaanrhbbazbdytv"
  smtpFrom: "dvirlabs@gmail.com"

# S3 Backup Configuration for AWS
s3:
  endpoint: "https://s3.eu-central-1.amazonaws.com"  # Update with your region
  accessKey: "AKIAXXXXXXXXXXXXXXXX"  # Replace with your AWS Access Key
  secretKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  # Replace with your AWS Secret Key
  bucketName: "my-recipes-backups"  # Update with your S3 bucket name
  region: "eu-central-1"  # Update with your region
  backupInterval: "weekly"

# Admin User Configuration
admin:
  username: "admin"
  email: "dvirlabs@gmail.com"
  password: "AdminPassword123!"  # Change this after first login!
  firstName: "Dvir"
  lastName: "Admin"
  displayName: "Dvir Admin"

# Database connection for AWS RDS (used when postgres.enabled: false)
database:
  host: "my-recipes-rds.chw4omcguqv7.eu-central-1.rds.amazonaws.com"
  port: "5432"
  name: "recipes_db"
  user: "recipes_user"
  password: "recipes_password"  # Store securely in AWS Secrets Manager in production
