Skip to content

Commit 8e8ffc6

Browse files
authored
feat: add OpenAI API key placeholder to environment template (#6368)
1 parent 2c48b46 commit 8e8ffc6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

render.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ services:
6868
- fromGroup: backend-production
6969
- fromGroup: stripe-production
7070
- fromGroup: logfire-server
71+
- fromGroup: openai-production
7172

7273
# Worker
7374
- type: web # Use a web service to allow health checks
@@ -125,6 +126,7 @@ services:
125126
- fromGroup: stripe-production
126127
- fromGroup: logfire-worker
127128
- fromGroup: aws-s3-production
129+
- fromGroup: openai-production
128130

129131
- type: redis
130132
name: redis
@@ -198,6 +200,7 @@ services:
198200
- fromGroup: github-sandbox
199201
- fromGroup: backend-sandbox
200202
- fromGroup: stripe-sandbox
203+
- fromGroup: openai-sandbox
201204

202205
# Worker
203206
- type: web # Use a web service to allow health checks
@@ -252,6 +255,7 @@ services:
252255
- fromGroup: backend-sandbox
253256
- fromGroup: stripe-sandbox
254257
- fromGroup: aws-s3-sandbox
258+
- fromGroup: openai-sandbox
255259

256260
databases:
257261
- name: db
@@ -272,6 +276,11 @@ envVarGroups:
272276
- key: POLAR_GOOGLE_CLIENT_SECRET
273277
sync: false
274278

279+
- name: openai-production
280+
envVars:
281+
- key: POLAR_OPENAI_API_KEY
282+
sync: false
283+
275284
- name: backend-production
276285
envVars:
277286
- key: POLAR_USER_SESSION_COOKIE_DOMAIN
@@ -381,6 +390,11 @@ envVarGroups:
381390
- key: POLAR_GOOGLE_CLIENT_SECRET
382391
sync: false
383392

393+
- name: openai-sandbox
394+
envVars:
395+
- key: POLAR_OPENAI_API_KEY
396+
sync: false
397+
384398
- name: backend-sandbox
385399
envVars:
386400
- key: POLAR_USER_SESSION_COOKIE_KEY

server/.env.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ POLAR_DISCORD_BOT_TOKEN = "*** REPLACE ***"
4141
POLAR_GOOGLE_CLIENT_ID = "*** REPLACE ***"
4242
POLAR_GOOGLE_CLIENT_SECRET = "*** REPLACE ***"
4343

44+
POLAR_OPENAI_API_KEY="*** REPLACE ***"
45+
4446
POLAR_AWS_ACCESS_KEY_ID=polar-development
4547
POLAR_AWS_SECRET_ACCESS_KEY=polar123456789
4648
POLAR_S3_FILES_BUCKET_NAME="polar-s3"

0 commit comments

Comments
 (0)