forked from prebid/salesagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.json
More file actions
54 lines (54 loc) · 1.73 KB
/
Copy pathapp.json
File metadata and controls
54 lines (54 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "adcp-sales-agent",
"env": {
"DATABASE_URL": {
"description": "PostgreSQL URL. Format: postgresql://USER:PASS@IP:5432/postgres (URL-encode special chars: & -> %26, = -> %3D, * -> %2A, # -> %23). Get IP from Cloud SQL instance overview.",
"required": true,
"order": 1
},
"SUPER_ADMIN_EMAILS": {
"description": "Comma-separated list of email addresses for super admin access",
"required": true,
"order": 2
},
"OAUTH_CLIENT_ID": {
"description": "OAuth Client ID (create at https://console.cloud.google.com/apis/credentials)",
"required": true,
"order": 3
},
"OAUTH_CLIENT_SECRET": {
"description": "OAuth Client Secret",
"required": true,
"order": 4
},
"OAUTH_DISCOVERY_URL": {
"description": "OIDC discovery URL (defaults to Google if not set)",
"value": "https://accounts.google.com/.well-known/openid-configuration",
"required": false,
"order": 5
}
},
"options": {
"allow-unauthenticated": true,
"memory": "1Gi",
"cpu": "1",
"port": 8000,
"max-instances": 10
},
"hooks": {
"postcreate": {
"commands": [
"echo ''",
"echo '=== IMPORTANT: Cloud SQL Setup Required ==='",
"echo ''",
"echo 'If deployment failed with database connection error:'",
"echo ''",
"echo '1. Go to Cloud SQL > Your Instance > Connections > Authorized networks'",
"echo '2. Add 0.0.0.0/0 (or restrict to Cloud Run egress IPs for production)'",
"echo '3. Redeploy: gcloud run services update adcp-sales-agent --region=REGION'",
"echo ''",
"echo 'AdCP Sales Agent deployed! Configure Gemini API key in Admin UI.'"
]
}
}
}