bf9e827f85
Deploy backend, frontend, PostgreSQL, and Redis on Kubernetes with optional Ingress/TLS, SQL migration hooks, and public registry exposure at repo.3fase.ir. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
763 B
YAML
23 lines
763 B
YAML
# Patch registry Deployment for reverse-proxy (Traefik + HTTPS)
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: registry
|
|
namespace: cloudhost-builds
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: registry
|
|
env:
|
|
- name: REGISTRY_STORAGE_DELETE_ENABLED
|
|
value: "true"
|
|
- name: REGISTRY_HTTP_RELATIVEURLS
|
|
value: "true"
|
|
- name: REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin
|
|
value: '["*"]'
|
|
- name: REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods
|
|
value: '["HEAD","GET","OPTIONS","DELETE"]'
|
|
- name: REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers
|
|
value: '["Authorization","Accept","Cache-Control"]'
|