-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
47 lines (43 loc) · 1.05 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
#####
# Documentation
# Redwood: https://render.com/docs/deploy-redwood
# YAML (all config values): https://render.com/docs/yaml-spec
#####
services:
- name: oauth2-server-redwood-web
type: web
env: static
buildCommand: yarn install && yarn rw deploy render web
staticPublishPath: ./web/dist
envVars:
- key: NODE_VERSION
value: 16
- key: SKIP_INSTALL_DEPS
value: true
routes:
- type: rewrite
source: /.redwood/functions/*
destination: https://api.oauth-demo.keyp.gg/*
- type: rewrite
source: /oauth/*
destination: https://api.oauth-demo.keyp.gg/oauth/*
- type: rewrite
source: /*
destination: /index.html
- name: oauth2-server-redwood-api
type: web
plan: free
env: node
region: oregon
buildCommand: yarn && yarn build-packages && yarn rw build api
startCommand: yarn rw deploy render api
envVars:
- key: NODE_VERSION
value: 16
- key: DATABASE_URL
fromDatabase:
name: oauth2-server-redwood-db
property: connectionString
databases:
- name: oauth2-server-redwood-db
region: oregon