forked from TFNS/CTFNote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
151 lines (147 loc) · 4.18 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
services:
# API
- type: web
name: api
runtime: docker
region: singapore # optional (defaults to oregon)
plan: free # optional (defaults to starter instance type)
rootDir: api
dockerfilePath: ./Dockerfile
dockerContext: ./
numInstances: 1
envVars:
- key: PAD_CREATE_URL
fromService:
type: web
name: hedgedoc
envVarKey: RENDER_EXTERNAL_URL # have to manually append /new to the end after creation and redeploy
- key: PAD_SHOW_URL
value: /
- key: DB_DATABASE
fromDatabase:
name: ctfnote
property: database
- key: DB_ADMIN_LOGIN
fromDatabase:
name: ctfnote
property: user
- key: DB_ADMIN_PASSWORD
fromDatabase:
name: ctfnote
property: password
- key: DB_USER_LOGIN
value: user_postgraphile
- key: DB_USER_PASSWORD
value: secret_password
- key: DB_HOST
fromDatabase:
name: ctfnote
property: host
- key: DB_PORT
fromDatabase:
name: ctfnote
property: port
- key: WEB_PORT
value: 3000
- key: PGSSLMODE
value: no-verify
- key: CMD_DOMAIN
fromService:
type: web
name: front
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: CMD_PROTOCOL_USESSL
value: true
- key: CMD_DOCUMENT_MAX_LENGTH
value: 100000
- key: USE_DISCORD
sync: false
- key: DISCORD_BOT_TOKEN
sync: false
- key: DISCORD_SERVER_ID
sync: false
- key: DISCORD_VOICE_CHANNELS
value: -3
- key: DISCORD_REGISTRATION_ENABLED
value: false
- key: DISCORD_REGISTRATION_CTFNOTE_ROLE
value: ''
- key: DISCORD_REGISTRATION_ROLE_ID
value: ''
- key: TZ
value: UTC
- key: LC_ALL
value: en_US.UTF-8
- key: SESSION_SECRET
generateValue: true
# preDeployCommand: export PAD_CREATE_URL="${RENDER_EXTERNAL_URL}/new" # Only paid instances
# Frontend
- type: web
name: front
runtime: docker
plan: free # optional (defaults to starter instance type)
region: singapore # optional (defaults to oregon)
rootDir: front
dockerfilePath: ./Dockerfile
dockerContext: ./
envVars:
- key: RENDER_APP_PAD_URL
fromService:
type: web
name: hedgedoc
envVarKey: RENDER_EXTERNAL_URL
- key: RENDER_APP_BACKEND_URL
fromService:
type: web
name: api
envVarKey: RENDER_EXTERNAL_URL
- key: NODE_ENV
value: production
# HedgeDoc
- type: web
name: hedgedoc
runtime: image
plan: free # optional (defaults to starter instance type)
region: singapore # optional (defaults to oregon)
image:
url: quay.io/hedgedoc/hedgedoc:1.9.9
envVars:
- key: CMD_DB_URL
fromDatabase:
name: hedgedoc
property: connectionString
- key: CMD_URL_PATH
value: pad
- key: CMD_DOMAIN
fromService:
type: web
name: front
envVarKey: RENDER_EXTERNAL_HOSTNAME
- key: PGSSLMODE
value: no-verify
- key: CMD_PROTOCOL_USESSL
value: true
- key: CMD_CSP_ENABLE
value: true
- key: CMD_IMAGE_UPLOAD_TYPE
value: imgur
- key: CMD_DOCUMENT_MAX_LENGTH
value: 100000
- key: CMD_SESSION_SECRET
generateValue: true
databases:
- name: ctfnote
plan: free # optional (defaults to starter instance type)
region: singapore # optional (defaults to oregon)
databaseName: ctfnote
user: ctfnote
ipAllowList: [] # only allow internal connections
postgresMajorVersion: 15
# Hedgedoc now uses its own database
- name: hedgedoc
plan: free # optional (defaults to starter instance type)
region: singapore # optional (defaults to oregon)
databaseName: hedgedoc
user: ctfnote
ipAllowList: [] # only allow internal connections
postgresMajorVersion: 15