@@ -313,42 +313,42 @@ func start() *cobra.Command {
313
313
if defaultAddress == "" {
314
314
defaultAddress = "127.0.0.1:3000"
315
315
}
316
- root .Flags ().StringVarP (& accessURL , "access-url" , "" , os .Getenv ("CODER_ACCESS_URL" ), "Specifies the external URL to access Coder." )
317
- root .Flags ().StringVarP (& address , "address" , "a" , defaultAddress , "The address to serve the API and dashboard." )
316
+ root .Flags ().StringVarP (& accessURL , "access-url" , "" , os .Getenv ("CODER_ACCESS_URL" ), "Specifies the external URL to access Coder (uses $CODER_ACCESS_URL) ." )
317
+ root .Flags ().StringVarP (& address , "address" , "a" , defaultAddress , "The address to serve the API and dashboard (uses $CODER_ADDRESS) ." )
318
318
defaultDev , _ := strconv .ParseBool (os .Getenv ("CODER_DEV_MODE" ))
319
- root .Flags ().BoolVarP (& dev , "dev" , "" , defaultDev , "Serve Coder in dev mode for tinkering." )
319
+ root .Flags ().BoolVarP (& dev , "dev" , "" , defaultDev , "Serve Coder in dev mode for tinkering (uses $CODER_DEV_MODE) ." )
320
320
root .Flags ().StringVarP (& postgresURL , "postgres-url" , "" , "" ,
321
321
"URL of a PostgreSQL database to connect to (defaults to $CODER_PG_CONNECTION_URL)." )
322
322
root .Flags ().Uint8VarP (& provisionerDaemonCount , "provisioner-daemons" , "" , 1 , "The amount of provisioner daemons to create on start." )
323
323
defaultTLSEnable , _ := strconv .ParseBool (os .Getenv ("CODER_TLS_ENABLE" ))
324
- root .Flags ().BoolVarP (& tlsEnable , "tls-enable" , "" , defaultTLSEnable , "Specifies if TLS will be enabled." )
324
+ root .Flags ().BoolVarP (& tlsEnable , "tls-enable" , "" , defaultTLSEnable , "Specifies if TLS will be enabled (uses $CODER_TLS_ENABLE) ." )
325
325
root .Flags ().StringVarP (& tlsCertFile , "tls-cert-file" , "" , os .Getenv ("CODER_TLS_CERT_FILE" ),
326
326
"Specifies the path to the certificate for TLS. It requires a PEM-encoded file. " +
327
327
"To configure the listener to use a CA certificate, concatenate the primary certificate " +
328
- "and the CA certificate together. The primary certificate should appear first in the combined file." )
328
+ "and the CA certificate together. The primary certificate should appear first in the combined file (uses $CODER_TLS_CERT_FILE) ." )
329
329
root .Flags ().StringVarP (& tlsClientCAFile , "tls-client-ca-file" , "" , os .Getenv ("CODER_TLS_CLIENT_CA_FILE" ),
330
- "PEM-encoded Certificate Authority file used for checking the authenticity of client." )
330
+ "PEM-encoded Certificate Authority file used for checking the authenticity of client (uses $CODER_TLS_CLIENT_CA_FILE) ." )
331
331
defaultTLSClientAuth := os .Getenv ("CODER_TLS_CLIENT_AUTH" )
332
332
if defaultTLSClientAuth == "" {
333
333
defaultTLSClientAuth = "request"
334
334
}
335
335
root .Flags ().StringVarP (& tlsClientAuth , "tls-client-auth" , "" , defaultTLSClientAuth ,
336
336
`Specifies the policy the server will follow for TLS Client Authentication. ` +
337
- `Accepted values are "none", "request", "require-any", "verify-if-given", or "require-and-verify".` )
337
+ `Accepted values are "none", "request", "require-any", "verify-if-given", or "require-and-verify" (uses $CODER_TLS_CLIENT_AUTH) .` )
338
338
root .Flags ().StringVarP (& tlsKeyFile , "tls-key-file" , "" , os .Getenv ("CODER_TLS_KEY_FILE" ),
339
- "Specifies the path to the private key for the certificate. It requires a PEM-encoded file." )
339
+ "Specifies the path to the private key for the certificate. It requires a PEM-encoded file (uses $CODER_TLS_KEY_FILE) ." )
340
340
defaultTLSMinVersion := os .Getenv ("CODER_TLS_MIN_VERSION" )
341
341
if defaultTLSMinVersion == "" {
342
342
defaultTLSMinVersion = "tls12"
343
343
}
344
344
root .Flags ().StringVarP (& tlsMinVersion , "tls-min-version" , "" , defaultTLSMinVersion ,
345
- `Specifies the minimum supported version of TLS. Accepted values are "tls10", "tls11", "tls12" or "tls13".` )
345
+ `Specifies the minimum supported version of TLS. Accepted values are "tls10", "tls11", "tls12" or "tls13" (uses $CODER_TLS_MIN_VERSION) .` )
346
346
defaultTunnelRaw := os .Getenv ("CODER_DEV_TUNNEL" )
347
347
if defaultTunnelRaw == "" {
348
348
defaultTunnelRaw = "true"
349
349
}
350
350
defaultTunnel , _ := strconv .ParseBool (defaultTunnelRaw )
351
- root .Flags ().BoolVarP (& useTunnel , "tunnel" , "" , defaultTunnel , "Serve dev mode through a Cloudflare Tunnel for easy setup." )
351
+ root .Flags ().BoolVarP (& useTunnel , "tunnel" , "" , defaultTunnel , "Serve dev mode through a Cloudflare Tunnel for easy setup (uses $CODER_DEV_TUNNEL) ." )
352
352
_ = root .Flags ().MarkHidden ("tunnel" )
353
353
354
354
return root
0 commit comments