Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
74 lines (67 loc) · 3 KB
/
Copy path.env.example
File metadata and controls
74 lines (67 loc) · 3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# SAP AI Provider Environment Variables
#
# This file contains example environment variables needed for the SAP AI Provider.
# Copy this file to .env and fill in your actual values.
#
# Usage:
# cp .env.example .env
# # Edit .env with your values
# # Never commit .env (it's in .gitignore)
# ==============================================================================
# LOCAL AUTHENTICATION: SAP AI Core Service Key (JSON format)
# ==============================================================================
#
# The complete service key JSON from SAP BTP cockpit.
# Get this from: SAP BTP Cockpit > Your Subaccount > Instances and Subscriptions
# > AI Core instance > Service Keys > Create/View Key
#
# IMPORTANT: This should be the entire JSON object as a single-line string.
#
# Example format:
# AICORE_SERVICE_KEY='{"clientid":"your-client-id","clientsecret":"your-secret","url":"https://your-auth-url.com","serviceurls":{"AI_API_URL":"https://your-ai-api.com"}}'
#
AICORE_SERVICE_KEY=
# ==============================================================================
# OPTIONAL: Advanced Configuration
# ==============================================================================
# Resource groups and deployment IDs are provider options, not environment variables.
# Configure the selector in application code:
# createSAPAIProvider({ resourceGroup: "production" });
# or:
# createSAPAIProvider({ deploymentId: "your-deployment-id" });
# If deploymentId is omitted, the SAP SDK resolves the deployment automatically.
# ==============================================================================
# Development/Testing Variables
# ==============================================================================
# Node.js environment
# NODE_ENV=development
# Process-wide SAP Cloud SDK logging; overrides the provider logLevel option.
# SAP_CLOUD_SDK_LOG_LEVEL=debug
# ==============================================================================
# Notes
# ==============================================================================
#
# 1. SAP BTP Cloud Foundry:
# When deployed to SAP BTP, the service binding (VCAP_SERVICES) is used
# automatically. You don't need AICORE_SERVICE_KEY in this case.
#
# 2. Local Development:
# Set AICORE_SERVICE_KEY unless using an explicit destination or a service binding.
# The SAP SDK caches the selected binding; restart after changing credentials.
#
# 3. Security:
# - Never commit .env or service keys to version control
# - .env is already in .gitignore
# - Rotate service keys regularly
# - Use separate keys for development/production
#
# 4. Troubleshooting:
# - If you get authentication errors, verify your service key is valid
# - Ensure the JSON is properly formatted (use a JSON validator)
# - Check that your service key has the required permissions
# - See TROUBLESHOOTING.md for more help
#
# 5. Documentation:
# - Setup guide: ENVIRONMENT_SETUP.md
# - API reference: API_REFERENCE.md
# - Troubleshooting: TROUBLESHOOTING.md