@@ -22,71 +22,83 @@ 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" ,
@@ -98,229 +110,270 @@ func newConfig() codersdk.DeploymentConfig {
98
110
Value : []codersdk.DeploymentConfigGitAuth {},
99
111
},
100
112
PrometheusEnable : codersdk.DeploymentConfigField [bool ]{
113
+ Name : "Prometheus Enable" ,
101
114
Key : "prometheus.enable" ,
102
115
Usage : "Serve prometheus metrics on the address defined by prometheus address." ,
103
116
Flag : "prometheus-enable" ,
104
117
},
105
118
PrometheusAddress : codersdk.DeploymentConfigField [string ]{
119
+ Name : "Prometheus Address" ,
106
120
Key : "prometheus.address" ,
107
121
Usage : "The bind address to serve prometheus metrics." ,
108
122
Flag : "prometheus-address" ,
109
123
Value : "127.0.0.1:2112" ,
110
124
},
111
125
PprofEnable : codersdk.DeploymentConfigField [bool ]{
126
+ Name : "Pprof Enable" ,
112
127
Key : "pprof.enable" ,
113
128
Usage : "Serve pprof metrics on the address defined by pprof address." ,
114
129
Flag : "pprof-enable" ,
115
130
},
116
131
PprofAddress : codersdk.DeploymentConfigField [string ]{
132
+ Name : "Pprof Address" ,
117
133
Key : "pprof.address" ,
118
134
Usage : "The bind address to serve pprof." ,
119
135
Flag : "pprof-address" ,
120
136
Value : "127.0.0.1:6060" ,
121
137
},
122
138
ProxyTrustedHeaders : codersdk.DeploymentConfigField [[]string ]{
139
+ Name : "Proxy Trusted Headers" ,
123
140
Key : "proxy.trusted_headers" ,
124
141
Flag : "proxy-trusted-headers" ,
125
142
Usage : "Headers to trust for forwarding IP addresses. e.g. Cf-Connecting-IP True-Client-Ip, X-Forwarded-for" ,
126
143
},
127
144
ProxyTrustedOrigins : codersdk.DeploymentConfigField [[]string ]{
145
+ Name : "Proxy Trusted Origins" ,
128
146
Key : "proxy.trusted_origins" ,
129
147
Flag : "proxy-trusted-origins" ,
130
148
Usage : "Origin addresses to respect \" proxy-trusted-headers\" . e.g. example.com" ,
131
149
},
132
150
CacheDirectory : codersdk.DeploymentConfigField [string ]{
151
+ Name : "Cache Directory" ,
133
152
Key : "cache_directory" ,
134
153
Usage : "The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd." ,
135
154
Flag : "cache-dir" ,
136
155
Value : defaultCacheDir (),
137
156
},
138
157
InMemoryDatabase : codersdk.DeploymentConfigField [bool ]{
158
+ Name : "In Memory Database" ,
139
159
Key : "in_memory_database" ,
140
160
Usage : "Controls whether data will be stored in an in-memory database." ,
141
161
Flag : "in-memory" ,
142
162
Hidden : true ,
143
163
},
144
164
ProvisionerDaemons : codersdk.DeploymentConfigField [int ]{
165
+ Name : "Provisioner Daemons" ,
145
166
Key : "provisioner.daemons" ,
146
167
Usage : "Number of provisioner daemons to create on start. If builds are stuck in queued state for a long time, consider increasing this." ,
147
168
Flag : "provisioner-daemons" ,
148
169
Value : 3 ,
149
170
},
150
171
PostgresURL : codersdk.DeploymentConfigField [string ]{
172
+ Name : "Postgres Connection URL" ,
151
173
Key : "pg_connection_url" ,
152
174
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\" ." ,
153
175
Flag : "postgres-url" ,
154
176
},
155
177
OAuth2GithubClientID : codersdk.DeploymentConfigField [string ]{
178
+ Name : "OAuth2 GitHub Client ID" ,
156
179
Key : "oauth2.github.client_id" ,
157
180
Usage : "Client ID for Login with GitHub." ,
158
181
Flag : "oauth2-github-client-id" ,
159
182
},
160
183
OAuth2GithubClientSecret : codersdk.DeploymentConfigField [string ]{
184
+ Name : "OAuth2 GitHub Client Secret" ,
161
185
Key : "oauth2.github.client_secret" ,
162
186
Usage : "Client secret for Login with GitHub." ,
163
187
Flag : "oauth2-github-client-secret" ,
164
188
},
165
189
OAuth2GithubAllowedOrgs : codersdk.DeploymentConfigField [[]string ]{
190
+ Name : "OAuth2 GitHub Allowed Orgs" ,
166
191
Key : "oauth2.github.allowed_orgs" ,
167
192
Usage : "Organizations the user must be a member of to Login with GitHub." ,
168
193
Flag : "oauth2-github-allowed-orgs" ,
169
194
},
170
195
OAuth2GithubAllowedTeams : codersdk.DeploymentConfigField [[]string ]{
196
+ Name : "OAuth2 GitHub Allowed Teams" ,
171
197
Key : "oauth2.github.allowed_teams" ,
172
198
Usage : "Teams inside organizations the user must be a member of to Login with GitHub. Structured as: <organization-name>/<team-slug>." ,
173
199
Flag : "oauth2-github-allowed-teams" ,
174
200
},
175
201
OAuth2GithubAllowSignups : codersdk.DeploymentConfigField [bool ]{
202
+ Name : "OAuth2 GitHub Allow Signups" ,
176
203
Key : "oauth2.github.allow_signups" ,
177
204
Usage : "Whether new users can sign up with GitHub." ,
178
205
Flag : "oauth2-github-allow-signups" ,
179
206
},
180
207
OAuth2GithubEnterpriseBaseURL : codersdk.DeploymentConfigField [string ]{
208
+ Name : "OAuth2 GitHub Enterprise Base URL" ,
181
209
Key : "oauth2.github.enterprise_base_url" ,
182
210
Usage : "Base URL of a GitHub Enterprise deployment to use for Login with GitHub." ,
183
211
Flag : "oauth2-github-enterprise-base-url" ,
184
212
},
185
213
OIDCAllowSignups : codersdk.DeploymentConfigField [bool ]{
214
+ Name : "OIDC Allow Signups" ,
186
215
Key : "oidc.allow_signups" ,
187
216
Usage : "Whether new users can sign up with OIDC." ,
188
217
Flag : "oidc-allow-signups" ,
189
218
Value : true ,
190
219
},
191
220
OIDCClientID : codersdk.DeploymentConfigField [string ]{
221
+ Name : "OIDC Client ID" ,
192
222
Key : "oidc.client_id" ,
193
223
Usage : "Client ID to use for Login with OIDC." ,
194
224
Flag : "oidc-client-id" ,
195
225
},
196
226
OIDCClientSecret : codersdk.DeploymentConfigField [string ]{
227
+ Name : "OIDC Client Secret" ,
197
228
Key : "oidc.client_secret" ,
198
229
Usage : "Client secret to use for Login with OIDC." ,
199
230
Flag : "oidc-client-secret" ,
200
231
},
201
232
OIDCEmailDomain : codersdk.DeploymentConfigField [string ]{
233
+ Name : "OIDC Email Domain" ,
202
234
Key : "oidc.email_domain" ,
203
235
Usage : "Email domain that clients logging in with OIDC must match." ,
204
236
Flag : "oidc-email-domain" ,
205
237
},
206
238
OIDCIssuerURL : codersdk.DeploymentConfigField [string ]{
239
+ Name : "OIDC Issuer URL" ,
207
240
Key : "oidc.issuer_url" ,
208
241
Usage : "Issuer URL to use for Login with OIDC." ,
209
242
Flag : "oidc-issuer-url" ,
210
243
},
211
244
OIDCScopes : codersdk.DeploymentConfigField [[]string ]{
245
+ Name : "OIDC Scopes" ,
212
246
Key : "oidc.scopes" ,
213
247
Usage : "Scopes to grant when authenticating with OIDC." ,
214
248
Flag : "oidc-scopes" ,
215
249
Value : []string {oidc .ScopeOpenID , "profile" , "email" },
216
250
},
217
251
TelemetryEnable : codersdk.DeploymentConfigField [bool ]{
252
+ Name : "Telemetry Enable" ,
218
253
Key : "telemetry.enable" ,
219
254
Usage : "Whether telemetry is enabled or not. Coder collects anonymized usage data to help improve our product." ,
220
255
Flag : "telemetry" ,
221
256
Value : flag .Lookup ("test.v" ) == nil ,
222
257
},
223
258
TelemetryTrace : codersdk.DeploymentConfigField [bool ]{
259
+ Name : "Telemetry Trace" ,
224
260
Key : "telemetry.trace" ,
225
261
Usage : "Whether Opentelemetry traces are sent to Coder. Coder collects anonymized application tracing to help improve our product. Disabling telemetry also disables this option." ,
226
262
Flag : "telemetry-trace" ,
227
263
Value : flag .Lookup ("test.v" ) == nil ,
228
264
},
229
265
TelemetryURL : codersdk.DeploymentConfigField [string ]{
266
+ Name : "Telemetry URL" ,
230
267
Key : "telemetry.url" ,
231
268
Usage : "URL to send telemetry." ,
232
269
Flag : "telemetry-url" ,
233
270
Hidden : true ,
234
271
Value : "https://telemetry.coder.com" ,
235
272
},
236
273
TLSEnable : codersdk.DeploymentConfigField [bool ]{
274
+ Name : "TLS Enable" ,
237
275
Key : "tls.enable" ,
238
276
Usage : "Whether TLS will be enabled." ,
239
277
Flag : "tls-enable" ,
240
278
},
241
279
TLSCertFiles : codersdk.DeploymentConfigField [[]string ]{
280
+ Name : "TLS Certificate Files" ,
242
281
Key : "tls.cert_file" ,
243
282
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." ,
244
283
Flag : "tls-cert-file" ,
245
284
},
246
285
TLSClientCAFile : codersdk.DeploymentConfigField [string ]{
286
+ Name : "TLS Client CA Files" ,
247
287
Key : "tls.client_ca_file" ,
248
288
Usage : "PEM-encoded Certificate Authority file used for checking the authenticity of client" ,
249
289
Flag : "tls-client-ca-file" ,
250
290
},
251
291
TLSClientAuth : codersdk.DeploymentConfigField [string ]{
292
+ Name : "TLS Client Auth" ,
252
293
Key : "tls.client_auth" ,
253
294
Usage : "Policy the server will follow for TLS Client Authentication. Accepted values are \" none\" , \" request\" , \" require-any\" , \" verify-if-given\" , or \" require-and-verify\" ." ,
254
295
Flag : "tls-client-auth" ,
255
296
Value : "request" ,
256
297
},
257
298
TLSKeyFiles : codersdk.DeploymentConfigField [[]string ]{
299
+ Name : "TLS Key Files" ,
258
300
Key : "tls.key_file" ,
259
301
Usage : "Paths to the private keys for each of the certificates. It requires a PEM-encoded file." ,
260
302
Flag : "tls-key-file" ,
261
303
},
262
304
TLSMinVersion : codersdk.DeploymentConfigField [string ]{
305
+ Name : "TLS Minimum Version" ,
263
306
Key : "tls.min_version" ,
264
307
Usage : "Minimum supported version of TLS. Accepted values are \" tls10\" , \" tls11\" , \" tls12\" or \" tls13\" " ,
265
308
Flag : "tls-min-version" ,
266
309
Value : "tls12" ,
267
310
},
268
311
TraceEnable : codersdk.DeploymentConfigField [bool ]{
312
+ Name : "Trace Enable" ,
269
313
Key : "trace" ,
270
314
Usage : "Whether application tracing data is collected." ,
271
315
Flag : "trace" ,
272
316
},
273
317
SecureAuthCookie : codersdk.DeploymentConfigField [bool ]{
318
+ Name : "Secure Auth Cookie" ,
274
319
Key : "secure_auth_cookie" ,
275
320
Usage : "Controls if the 'Secure' property is set on browser session cookies." ,
276
321
Flag : "secure-auth-cookie" ,
277
322
},
278
323
SSHKeygenAlgorithm : codersdk.DeploymentConfigField [string ]{
324
+ Name : "SSH Keygen Algorithm" ,
279
325
Key : "ssh_keygen_algorithm" ,
280
326
Usage : "The algorithm to use for generating ssh keys. Accepted values are \" ed25519\" , \" ecdsa\" , or \" rsa4096\" ." ,
281
327
Flag : "ssh-keygen-algorithm" ,
282
328
Value : "ed25519" ,
283
329
},
284
330
AutoImportTemplates : codersdk.DeploymentConfigField [[]string ]{
331
+ Name : "Auto Import Templates" ,
285
332
Key : "auto_import_templates" ,
286
333
Usage : "Templates to auto-import. Available auto-importable templates are: kubernetes" ,
287
334
Flag : "auto-import-template" ,
288
335
Hidden : true ,
289
336
},
290
337
MetricsCacheRefreshInterval : codersdk.DeploymentConfigField [time.Duration ]{
338
+ Name : "Metrics Cache Refresh Interval" ,
291
339
Key : "metrics_cache_refresh_interval" ,
292
340
Usage : "How frequently metrics are refreshed" ,
293
341
Flag : "metrics-cache-refresh-interval" ,
294
342
Hidden : true ,
295
343
Value : time .Hour ,
296
344
},
297
345
AgentStatRefreshInterval : codersdk.DeploymentConfigField [time.Duration ]{
346
+ Name : "Agent Stat Refresh Interval" ,
298
347
Key : "agent_stat_refresh_interval" ,
299
348
Usage : "How frequently agent stats are recorded" ,
300
349
Flag : "agent-stats-refresh-interval" ,
301
350
Hidden : true ,
302
351
Value : 10 * time .Minute ,
303
352
},
304
353
AuditLogging : codersdk.DeploymentConfigField [bool ]{
354
+ Name : "Audit Logging" ,
305
355
Key : "audit_logging" ,
306
356
Usage : "Specifies whether audit logging is enabled." ,
307
357
Flag : "audit-logging" ,
308
358
Value : true ,
309
359
Enterprise : true ,
310
360
},
311
361
BrowserOnly : codersdk.DeploymentConfigField [bool ]{
362
+ Name : "Browser Only" ,
312
363
Key : "browser_only" ,
313
364
Usage : "Whether Coder only allows connections to workspaces via the browser." ,
314
365
Flag : "browser-only" ,
315
366
Enterprise : true ,
316
367
},
317
368
SCIMAPIKey : codersdk.DeploymentConfigField [string ]{
369
+ Name : "SCIM API Key" ,
318
370
Key : "scim_api_key" ,
319
371
Usage : "Enables SCIM and sets the authentication header for the built-in SCIM server. New users are automatically created with OIDC authentication." ,
320
372
Flag : "scim-auth-header" ,
321
373
Enterprise : true ,
322
374
},
323
375
UserWorkspaceQuota : codersdk.DeploymentConfigField [int ]{
376
+ Name : "User Workspace Quota" ,
324
377
Key : "user_workspace_quota" ,
325
378
Usage : "Enables and sets a limit on how many workspaces each user can create." ,
326
379
Flag : "user-workspace-quota" ,
0 commit comments