@@ -22,299 +22,352 @@ import (
22
22
func newConfig () codersdk.DeploymentConfig {
23
23
return codersdk.DeploymentConfig {
24
24
AccessURL : codersdk.DeploymentConfigField [string ]{
25
+ Name : "Access URL" ,
25
26
Key : "access_url" ,
26
27
Usage : "External URL to access your deployment. This must be accessible by all provisioned workspaces." ,
27
28
Flag : "access-url" ,
28
29
},
29
30
WildcardAccessURL : codersdk.DeploymentConfigField [string ]{
31
+ Name : "Wildcard Access URL" ,
30
32
Key : "wildcard_access_url" ,
31
33
Usage : "Specifies the wildcard hostname to use for workspace applications in the form \" *.example.com\" ." ,
32
34
Flag : "wildcard-access-url" ,
33
35
},
34
36
Address : codersdk.DeploymentConfigField [string ]{
37
+ Name : "Address" ,
35
38
Key : "address" ,
36
39
Usage : "Bind address of the server." ,
37
40
Flag : "address" ,
38
41
Shorthand : "a" ,
39
42
Value : "127.0.0.1:3000" ,
40
43
},
41
44
AutobuildPollInterval : codersdk.DeploymentConfigField [time.Duration ]{
45
+ Name : "Autobuild Poll Interval" ,
42
46
Key : "autobuild_poll_interval" ,
43
47
Usage : "Interval to poll for scheduled workspace builds." ,
44
48
Flag : "autobuild-poll-interval" ,
45
49
Hidden : true ,
46
50
Value : time .Minute ,
47
51
},
48
52
DERPServerEnable : codersdk.DeploymentConfigField [bool ]{
53
+ Name : "DERP Server Enable" ,
49
54
Key : "derp.server.enable" ,
50
55
Usage : "Whether to enable or disable the embedded DERP relay server." ,
51
56
Flag : "derp-server-enable" ,
52
57
Value : true ,
53
58
},
54
59
DERPServerRegionID : codersdk.DeploymentConfigField [int ]{
60
+ Name : "DERP Server Region ID" ,
55
61
Key : "derp.server.region_id" ,
56
62
Usage : "Region ID to use for the embedded DERP server." ,
57
63
Flag : "derp-server-region-id" ,
58
64
Value : 999 ,
59
65
},
60
66
DERPServerRegionCode : codersdk.DeploymentConfigField [string ]{
67
+ Name : "DERP Server Region Code" ,
61
68
Key : "derp.server.region_code" ,
62
69
Usage : "Region code to use for the embedded DERP server." ,
63
70
Flag : "derp-server-region-code" ,
64
71
Value : "coder" ,
65
72
},
66
73
DERPServerRegionName : codersdk.DeploymentConfigField [string ]{
74
+ Name : "DERP Server Region Name" ,
67
75
Key : "derp.server.region_name" ,
68
76
Usage : "Region name that for the embedded DERP server." ,
69
77
Flag : "derp-server-region-name" ,
70
78
Value : "Coder Embedded Relay" ,
71
79
},
72
80
DERPServerSTUNAddresses : codersdk.DeploymentConfigField [[]string ]{
81
+ Name : "DERP Server STUN Addresses" ,
73
82
Key : "derp.server.stun_addresses" ,
74
83
Usage : "Addresses for STUN servers to establish P2P connections. Set empty to disable P2P connections." ,
75
84
Flag : "derp-server-stun-addresses" ,
76
85
Value : []string {"stun.l.google.com:19302" },
77
86
},
78
87
DERPServerRelayURL : codersdk.DeploymentConfigField [string ]{
88
+ Name : "DERP Server Relay URL" ,
79
89
Key : "derp.server.relay_url" ,
80
90
Usage : "An HTTP URL that is accessible by other replicas to relay DERP traffic. Required for high availability." ,
81
91
Flag : "derp-server-relay-url" ,
82
92
Enterprise : true ,
83
93
},
84
94
DERPConfigURL : codersdk.DeploymentConfigField [string ]{
95
+ Name : "DERP Config URL" ,
85
96
Key : "derp.config.url" ,
86
97
Usage : "URL to fetch a DERP mapping on startup. See: https://tailscale.com/kb/1118/custom-derp-servers/" ,
87
98
Flag : "derp-config-url" ,
88
99
},
89
100
DERPConfigPath : codersdk.DeploymentConfigField [string ]{
101
+ Name : "DERP Config Path" ,
90
102
Key : "derp.config.path" ,
91
103
Usage : "Path to read a DERP mapping from. See: https://tailscale.com/kb/1118/custom-derp-servers/" ,
92
104
Flag : "derp-config-path" ,
93
105
},
94
106
PrometheusEnable : codersdk.DeploymentConfigField [bool ]{
107
+ Name : "Prometheus Enable" ,
95
108
Key : "prometheus.enable" ,
96
109
Usage : "Serve prometheus metrics on the address defined by prometheus address." ,
97
110
Flag : "prometheus-enable" ,
98
111
},
99
112
PrometheusAddress : codersdk.DeploymentConfigField [string ]{
113
+ Name : "Prometheus Address" ,
100
114
Key : "prometheus.address" ,
101
115
Usage : "The bind address to serve prometheus metrics." ,
102
116
Flag : "prometheus-address" ,
103
117
Value : "127.0.0.1:2112" ,
104
118
},
105
119
PprofEnable : codersdk.DeploymentConfigField [bool ]{
120
+ Name : "Pprof Enable" ,
106
121
Key : "pprof.enable" ,
107
122
Usage : "Serve pprof metrics on the address defined by pprof address." ,
108
123
Flag : "pprof-enable" ,
109
124
},
110
125
PprofAddress : codersdk.DeploymentConfigField [string ]{
126
+ Name : "Pprof Address" ,
111
127
Key : "pprof.address" ,
112
128
Usage : "The bind address to serve pprof." ,
113
129
Flag : "pprof-address" ,
114
130
Value : "127.0.0.1:6060" ,
115
131
},
116
132
ProxyTrustedHeaders : codersdk.DeploymentConfigField [[]string ]{
133
+ Name : "Proxy Trusted Headers" ,
117
134
Key : "proxy.trusted_headers" ,
118
135
Flag : "proxy-trusted-headers" ,
119
136
Usage : "Headers to trust for forwarding IP addresses. e.g. Cf-Connecting-IP True-Client-Ip, X-Forwarded-for" ,
120
137
},
121
138
ProxyTrustedOrigins : codersdk.DeploymentConfigField [[]string ]{
139
+ Name : "Proxy Trusted Origins" ,
122
140
Key : "proxy.trusted_origins" ,
123
141
Flag : "proxy-trusted-origins" ,
124
142
Usage : "Origin addresses to respect \" proxy-trusted-headers\" . e.g. example.com" ,
125
143
},
126
144
CacheDirectory : codersdk.DeploymentConfigField [string ]{
145
+ Name : "Cache Directory" ,
127
146
Key : "cache_directory" ,
128
147
Usage : "The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd." ,
129
148
Flag : "cache-dir" ,
130
149
Value : defaultCacheDir (),
131
150
},
132
151
InMemoryDatabase : codersdk.DeploymentConfigField [bool ]{
152
+ Name : "In Memory Database" ,
133
153
Key : "in_memory_database" ,
134
154
Usage : "Controls whether data will be stored in an in-memory database." ,
135
155
Flag : "in-memory" ,
136
156
Hidden : true ,
137
157
},
138
158
ProvisionerDaemons : codersdk.DeploymentConfigField [int ]{
159
+ Name : "Provisioner Daemons" ,
139
160
Key : "provisioner.daemons" ,
140
161
Usage : "Number of provisioner daemons to create on start. If builds are stuck in queued state for a long time, consider increasing this." ,
141
162
Flag : "provisioner-daemons" ,
142
163
Value : 3 ,
143
164
},
144
165
PostgresURL : codersdk.DeploymentConfigField [string ]{
166
+ Name : "Postgres Connection URL" ,
145
167
Key : "pg_connection_url" ,
146
168
Usage : "URL of a PostgreSQL database. If empty, PostgreSQL binaries will be downloaded from Maven (https://repo1.maven.org/maven2) and store all data in the config root. Access the built-in database with \" coder server postgres-builtin-url\" ." ,
147
169
Flag : "postgres-url" ,
148
170
},
149
171
OAuth2GithubClientID : codersdk.DeploymentConfigField [string ]{
172
+ Name : "OAuth2 GitHub Client ID" ,
150
173
Key : "oauth2.github.client_id" ,
151
174
Usage : "Client ID for Login with GitHub." ,
152
175
Flag : "oauth2-github-client-id" ,
153
176
},
154
177
OAuth2GithubClientSecret : codersdk.DeploymentConfigField [string ]{
178
+ Name : "OAuth2 GitHub Client Secret" ,
155
179
Key : "oauth2.github.client_secret" ,
156
180
Usage : "Client secret for Login with GitHub." ,
157
181
Flag : "oauth2-github-client-secret" ,
158
182
},
159
183
OAuth2GithubAllowedOrgs : codersdk.DeploymentConfigField [[]string ]{
184
+ Name : "OAuth2 GitHub Allowed Orgs" ,
160
185
Key : "oauth2.github.allowed_orgs" ,
161
186
Usage : "Organizations the user must be a member of to Login with GitHub." ,
162
187
Flag : "oauth2-github-allowed-orgs" ,
163
188
},
164
189
OAuth2GithubAllowedTeams : codersdk.DeploymentConfigField [[]string ]{
190
+ Name : "OAuth2 GitHub Allowed Teams" ,
165
191
Key : "oauth2.github.allowed_teams" ,
166
192
Usage : "Teams inside organizations the user must be a member of to Login with GitHub. Structured as: <organization-name>/<team-slug>." ,
167
193
Flag : "oauth2-github-allowed-teams" ,
168
194
},
169
195
OAuth2GithubAllowSignups : codersdk.DeploymentConfigField [bool ]{
196
+ Name : "OAuth2 GitHub Allow Signups" ,
170
197
Key : "oauth2.github.allow_signups" ,
171
198
Usage : "Whether new users can sign up with GitHub." ,
172
199
Flag : "oauth2-github-allow-signups" ,
173
200
},
174
201
OAuth2GithubEnterpriseBaseURL : codersdk.DeploymentConfigField [string ]{
202
+ Name : "OAuth2 GitHub Enterprise Base URL" ,
175
203
Key : "oauth2.github.enterprise_base_url" ,
176
204
Usage : "Base URL of a GitHub Enterprise deployment to use for Login with GitHub." ,
177
205
Flag : "oauth2-github-enterprise-base-url" ,
178
206
},
179
207
OIDCAllowSignups : codersdk.DeploymentConfigField [bool ]{
208
+ Name : "OIDC Allow Signups" ,
180
209
Key : "oidc.allow_signups" ,
181
210
Usage : "Whether new users can sign up with OIDC." ,
182
211
Flag : "oidc-allow-signups" ,
183
212
Value : true ,
184
213
},
185
214
OIDCClientID : codersdk.DeploymentConfigField [string ]{
215
+ Name : "OIDC Client ID" ,
186
216
Key : "oidc.client_id" ,
187
217
Usage : "Client ID to use for Login with OIDC." ,
188
218
Flag : "oidc-client-id" ,
189
219
},
190
220
OIDCClientSecret : codersdk.DeploymentConfigField [string ]{
221
+ Name : "OIDC Client Secret" ,
191
222
Key : "oidc.client_secret" ,
192
223
Usage : "Client secret to use for Login with OIDC." ,
193
224
Flag : "oidc-client-secret" ,
194
225
},
195
226
OIDCEmailDomain : codersdk.DeploymentConfigField [string ]{
227
+ Name : "OIDC Email Domain" ,
196
228
Key : "oidc.email_domain" ,
197
229
Usage : "Email domain that clients logging in with OIDC must match." ,
198
230
Flag : "oidc-email-domain" ,
199
231
},
200
232
OIDCIssuerURL : codersdk.DeploymentConfigField [string ]{
233
+ Name : "OIDC Issuer URL" ,
201
234
Key : "oidc.issuer_url" ,
202
235
Usage : "Issuer URL to use for Login with OIDC." ,
203
236
Flag : "oidc-issuer-url" ,
204
237
},
205
238
OIDCScopes : codersdk.DeploymentConfigField [[]string ]{
239
+ Name : "OIDC Scopes" ,
206
240
Key : "oidc.scopes" ,
207
241
Usage : "Scopes to grant when authenticating with OIDC." ,
208
242
Flag : "oidc-scopes" ,
209
243
Value : []string {oidc .ScopeOpenID , "profile" , "email" },
210
244
},
211
245
TelemetryEnable : codersdk.DeploymentConfigField [bool ]{
246
+ Name : "Telemetry Enable" ,
212
247
Key : "telemetry.enable" ,
213
248
Usage : "Whether telemetry is enabled or not. Coder collects anonymized usage data to help improve our product." ,
214
249
Flag : "telemetry" ,
215
250
Value : flag .Lookup ("test.v" ) == nil ,
216
251
},
217
252
TelemetryTrace : codersdk.DeploymentConfigField [bool ]{
253
+ Name : "Telemetry Trace" ,
218
254
Key : "telemetry.trace" ,
219
255
Usage : "Whether Opentelemetry traces are sent to Coder. Coder collects anonymized application tracing to help improve our product. Disabling telemetry also disables this option." ,
220
256
Flag : "telemetry-trace" ,
221
257
Value : flag .Lookup ("test.v" ) == nil ,
222
258
},
223
259
TelemetryURL : codersdk.DeploymentConfigField [string ]{
260
+ Name : "Telemetry URL" ,
224
261
Key : "telemetry.url" ,
225
262
Usage : "URL to send telemetry." ,
226
263
Flag : "telemetry-url" ,
227
264
Hidden : true ,
228
265
Value : "https://telemetry.coder.com" ,
229
266
},
230
267
TLSEnable : codersdk.DeploymentConfigField [bool ]{
268
+ Name : "TLS Enable" ,
231
269
Key : "tls.enable" ,
232
270
Usage : "Whether TLS will be enabled." ,
233
271
Flag : "tls-enable" ,
234
272
},
235
273
TLSCertFiles : codersdk.DeploymentConfigField [[]string ]{
274
+ Name : "TLS Certificate Files" ,
236
275
Key : "tls.cert_file" ,
237
276
Usage : "Path to each certificate for TLS. It requires a PEM-encoded file. To configure the listener to use a CA certificate, concatenate the primary certificate and the CA certificate together. The primary certificate should appear first in the combined file." ,
238
277
Flag : "tls-cert-file" ,
239
278
},
240
279
TLSClientCAFile : codersdk.DeploymentConfigField [string ]{
280
+ Name : "TLS Client CA Files" ,
241
281
Key : "tls.client_ca_file" ,
242
282
Usage : "PEM-encoded Certificate Authority file used for checking the authenticity of client" ,
243
283
Flag : "tls-client-ca-file" ,
244
284
},
245
285
TLSClientAuth : codersdk.DeploymentConfigField [string ]{
286
+ Name : "TLS Client Auth" ,
246
287
Key : "tls.client_auth" ,
247
288
Usage : "Policy the server will follow for TLS Client Authentication. Accepted values are \" none\" , \" request\" , \" require-any\" , \" verify-if-given\" , or \" require-and-verify\" ." ,
248
289
Flag : "tls-client-auth" ,
249
290
Value : "request" ,
250
291
},
251
292
TLSKeyFiles : codersdk.DeploymentConfigField [[]string ]{
293
+ Name : "TLS Key Files" ,
252
294
Key : "tls.key_file" ,
253
295
Usage : "Paths to the private keys for each of the certificates. It requires a PEM-encoded file." ,
254
296
Flag : "tls-key-file" ,
255
297
},
256
298
TLSMinVersion : codersdk.DeploymentConfigField [string ]{
299
+ Name : "TLS Minimum Version" ,
257
300
Key : "tls.min_version" ,
258
301
Usage : "Minimum supported version of TLS. Accepted values are \" tls10\" , \" tls11\" , \" tls12\" or \" tls13\" " ,
259
302
Flag : "tls-min-version" ,
260
303
Value : "tls12" ,
261
304
},
262
305
TraceEnable : codersdk.DeploymentConfigField [bool ]{
306
+ Name : "Trace Enable" ,
263
307
Key : "trace" ,
264
308
Usage : "Whether application tracing data is collected." ,
265
309
Flag : "trace" ,
266
310
},
267
311
SecureAuthCookie : codersdk.DeploymentConfigField [bool ]{
312
+ Name : "Secure Auth Cookie" ,
268
313
Key : "secure_auth_cookie" ,
269
314
Usage : "Controls if the 'Secure' property is set on browser session cookies." ,
270
315
Flag : "secure-auth-cookie" ,
271
316
},
272
317
SSHKeygenAlgorithm : codersdk.DeploymentConfigField [string ]{
318
+ Name : "SSH Keygen Algorithm" ,
273
319
Key : "ssh_keygen_algorithm" ,
274
320
Usage : "The algorithm to use for generating ssh keys. Accepted values are \" ed25519\" , \" ecdsa\" , or \" rsa4096\" ." ,
275
321
Flag : "ssh-keygen-algorithm" ,
276
322
Value : "ed25519" ,
277
323
},
278
324
AutoImportTemplates : codersdk.DeploymentConfigField [[]string ]{
325
+ Name : "Auto Import Templates" ,
279
326
Key : "auto_import_templates" ,
280
327
Usage : "Templates to auto-import. Available auto-importable templates are: kubernetes" ,
281
328
Flag : "auto-import-template" ,
282
329
Hidden : true ,
283
330
},
284
331
MetricsCacheRefreshInterval : codersdk.DeploymentConfigField [time.Duration ]{
332
+ Name : "Metrics Cache Refresh Interval" ,
285
333
Key : "metrics_cache_refresh_interval" ,
286
334
Usage : "How frequently metrics are refreshed" ,
287
335
Flag : "metrics-cache-refresh-interval" ,
288
336
Hidden : true ,
289
337
Value : time .Hour ,
290
338
},
291
339
AgentStatRefreshInterval : codersdk.DeploymentConfigField [time.Duration ]{
340
+ Name : "Agent Stat Refresh Interval" ,
292
341
Key : "agent_stat_refresh_interval" ,
293
342
Usage : "How frequently agent stats are recorded" ,
294
343
Flag : "agent-stats-refresh-interval" ,
295
344
Hidden : true ,
296
345
Value : 10 * time .Minute ,
297
346
},
298
347
AuditLogging : codersdk.DeploymentConfigField [bool ]{
348
+ Name : "Audit Logging" ,
299
349
Key : "audit_logging" ,
300
350
Usage : "Specifies whether audit logging is enabled." ,
301
351
Flag : "audit-logging" ,
302
352
Value : true ,
303
353
Enterprise : true ,
304
354
},
305
355
BrowserOnly : codersdk.DeploymentConfigField [bool ]{
356
+ Name : "Browser Only" ,
306
357
Key : "browser_only" ,
307
358
Usage : "Whether Coder only allows connections to workspaces via the browser." ,
308
359
Flag : "browser-only" ,
309
360
Enterprise : true ,
310
361
},
311
362
SCIMAPIKey : codersdk.DeploymentConfigField [string ]{
363
+ Name : "SCIM API Key" ,
312
364
Key : "scim_api_key" ,
313
365
Usage : "Enables SCIM and sets the authentication header for the built-in SCIM server. New users are automatically created with OIDC authentication." ,
314
366
Flag : "scim-auth-header" ,
315
367
Enterprise : true ,
316
368
},
317
369
UserWorkspaceQuota : codersdk.DeploymentConfigField [int ]{
370
+ Name : "User Workspace Quota" ,
318
371
Key : "user_workspace_quota" ,
319
372
Usage : "Enables and sets a limit on how many workspaces each user can create." ,
320
373
Flag : "user-workspace-quota" ,
0 commit comments