43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: freedge-config
|
|
namespace: freedge
|
|
data:
|
|
NODE_ENV: "production"
|
|
PORT: "3000"
|
|
LOG_LEVEL: "info"
|
|
CORS_ORIGINS: "https://freedge.app"
|
|
FRONTEND_URL: "https://freedge.app"
|
|
PUBLIC_BASE_URL: "https://freedge.app/api"
|
|
OPENAI_TEXT_MODEL: "gpt-4o-mini"
|
|
OPENAI_TRANSCRIBE_MODEL: "gpt-4o-mini-transcribe"
|
|
ENABLE_IMAGE_GENERATION: "true"
|
|
OPENAI_IMAGE_MODEL: "gpt-image-1"
|
|
OPENAI_IMAGE_QUALITY: "medium"
|
|
OPENAI_IMAGE_SIZE: "1024x1024"
|
|
OPENAI_MAX_RETRIES: "3"
|
|
OPENAI_TIMEOUT_MS: "60000"
|
|
proxy.conf: |
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
client_max_body_size 20M;
|
|
|
|
location /api/ {
|
|
rewrite ^/api/(.*) /$1 break;
|
|
proxy_pass http://freedge-backend:3000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://freedge-frontend:80;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|