-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
77 lines (66 loc) · 2.31 KB
/
Copy pathenv.example
File metadata and controls
77 lines (66 loc) · 2.31 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
75
76
77
# --- Core Django Settings ---
SECRET_KEY="<generate-a-strong-random-key>"
DEBUG=True
# --- Allowed hosts ---
# Optional: one per line (default to "*")
ALLOWED_HOSTS="
localhost
127.0.0.1
"
# --- Test Mode (set to True to skip Globus policy checks and bypass rate-limiting during development) ---
RUNNING_AUTOMATED_TEST_SUITE=False
# --- Logging ---
# Set to True to send application logs to stdout/stderr (recommended for Docker)
LOG_TO_STDOUT=True
# --- Globus Credentials ---
# Required
GLOBUS_APPLICATION_ID="<Your-Gateway-Service-API-Globus-App-Client-UUID>"
GLOBUS_APPLICATION_SECRET="<Your-Gateway-Service-API-Globus-App-Client-Secret>"
SERVICE_ACCOUNT_ID="<Your-Service-Account-Globus-App-Client-UUID>"
SERVICE_ACCOUNT_SECRET="<Your-Service-Account-Globus-App-Client-Secret>"
# --- Globus Policies ---
# Required: comma-separated list of policy IDs (at least one must be provided)
# Example: GLOBUS_POLICIES="policy-id-1,policy-id-2"
GLOBUS_POLICIES=""
# --- Globus Groups ---
# Optional: one per line
# Example: GLOBUS_GROUPS="
# group-uuid-1
# group-uuid-2
# "
GLOBUS_GROUPS=""
# --- Authorized Identity Provider Domains (one per line) ---
# Required: one per line (cannot be empty, must match Globus policy)
# Example: AUTHORIZED_IDP_DOMAINS="
# anl.gov
# uchicago.edu
# "
AUTHORIZED_IDP_DOMAINS=""
# --- Authorized Groups Per IDP ---
# Optional: JSON format with domains (keys: domains, values: comma-separated list of group IDs)
# Example: AUTHORIZED_GROUPS_PER_IDP='
# {
# "uchicago.edu": "groupd-uuid-1"
# }
# '
AUTHORIZED_GROUPS_PER_IDP='{}'
# --- Postgres Database ---
POSTGRES_DB="inferencegateway"
POSTGRES_USER="inferencedev"
POSTGRES_PASSWORD="change-this-password"
PGHOST="postgres"
PGPORT=5432
PGUSER="inferencedev"
PGPASSWORD="change-this-password"
PGDATABASE="inferencegateway"
# --- Redis Cache ---
# Examples: Docker - REDIS_URL="redis://redis:6379/0"
# Bare metal - REDIS_URL="redis://localhost:6379/0"
# With password - REDIS_URL="redis://:password@localhost:6379/0"
REDIS_URL="redis://redis:6379/0"
USE_REDIS_CACHE=true
# --- Gateway Specific Settings ---
MAX_BATCHES_PER_USER=2
RATE_LIMIT_PER_SEC_PER_USER=10
STREAMING_SERVER_HOST="localhost:8080"
INTERNAL_STREAMING_SECRET="your-internal-streaming-secret-key"