-
Notifications
You must be signed in to change notification settings - Fork 67
/
render.yaml
49 lines (48 loc) · 1.56 KB
/
render.yaml
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
previewsEnabled: false
services:
- type: web
name: issuing-treasury
runtime: node
plan: free
rootDir: _base
buildCommand: npm install; npx prisma migrate deploy; npx prisma generate; npm run build;
# If you plan to have your own custom domain, you can remove these environment variables being assigned here and
# assign them to your custom domain values through the Render.com dashboard once this web service has been provisioned
startCommand: >
NEXTAUTH_URL=$RENDER_EXTERNAL_URL
CONNECT_ONBOARDING_REDIRECT_URL=$RENDER_EXTERNAL_URL
npm run start
autoDeploy: false
envVars:
- key: PORT
value: 10000
- key: POSTGRES_URL
fromDatabase:
name: issuing-treasury-db
property: connectionString
# This will default to the US region
- key: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
sync: false
- key: STRIPE_SECRET_KEY
sync: false
# You can enable these and comment out the above keys if you want to try the multi-region deployment
# - key: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_US
# sync: false
# - key: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_UK
# sync: false
# - key: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_EU
# sync: false
# - key: STRIPE_SECRET_KEY_US
# sync: false
# - key: STRIPE_SECRET_KEY_UK
# sync: false
# - key: STRIPE_SECRET_KEY_EU
# sync: false
- key: NEXTAUTH_SECRET
generateValue: true
databases:
- name: issuing-treasury-db
plan: free
databaseName: issuing_treasury
user: issuing_treasury
ipAllowList: [] # only allow internal connections