diff --git a/cli/testdata/coder_server_--help.golden b/cli/testdata/coder_server_--help.golden index 950f1b4d9ceea..23f7bba488bee 100644 --- a/cli/testdata/coder_server_--help.golden +++ b/cli/testdata/coder_server_--help.golden @@ -54,6 +54,9 @@ OPTIONS: The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096". + --support-links struct[[]codersdk.LinkConfig], $CODER_SUPPORT_LINKS + Support links to display in the top right drop down menu. + --update-check bool, $CODER_UPDATE_CHECK (default: false) Periodically check for new releases of Coder and inform the owner. The check is performed once per day. diff --git a/codersdk/deployment.go b/codersdk/deployment.go index baa49d58ed92a..191a1cb93d991 100644 --- a/codersdk/deployment.go +++ b/codersdk/deployment.go @@ -1793,11 +1793,11 @@ Write out the current server config as YAML to stdout.`, { Name: "Support Links", Description: "Support links to display in the top right drop down menu.", + Env: "CODER_SUPPORT_LINKS", + Flag: "support-links", YAML: "supportLinks", Value: &c.Support.Links, - // The support links are hidden until they are defined in the - // YAML. - Hidden: true, + Hidden: false, }, { // Env handling is done in cli.ReadGitAuthFromEnvironment diff --git a/codersdk/deployment_test.go b/codersdk/deployment_test.go index ef84d64501d60..97cd2ce82bfce 100644 --- a/codersdk/deployment_test.go +++ b/codersdk/deployment_test.go @@ -65,11 +65,6 @@ func TestDeploymentValues_HighlyConfigurable(t *testing.T) { "External Token Encryption Keys": { yaml: true, }, - // These complex objects should be configured through YAML. - "Support Links": { - flag: true, - env: true, - }, "External Auth Providers": { // Technically External Auth Providers can be provided through the env, // but bypassing clibase. See cli.ReadExternalAuthProvidersFromEnv. diff --git a/docs/cli/server.md b/docs/cli/server.md index ca8062a411ca5..77f6d600e372c 100644 --- a/docs/cli/server.md +++ b/docs/cli/server.md @@ -918,6 +918,16 @@ Controls if the 'Strict-Transport-Security' header is set on all static file res Two optional fields can be set in the Strict-Transport-Security header; 'includeSubDomains' and 'preload'. The 'strict-transport-security' flag must be set to a non-zero value for these options to be used. +### --support-links + +| | | +| ----------- | ------------------------------------------ | +| Type | struct[[]codersdk.LinkConfig] | +| Environment | $CODER_SUPPORT_LINKS | +| YAML | supportLinks | + +Support links to display in the top right drop down menu. + ### --tls-address | | | diff --git a/enterprise/cli/testdata/coder_server_--help.golden b/enterprise/cli/testdata/coder_server_--help.golden index 190feeffa9945..e2b27dc6d9234 100644 --- a/enterprise/cli/testdata/coder_server_--help.golden +++ b/enterprise/cli/testdata/coder_server_--help.golden @@ -55,6 +55,9 @@ OPTIONS: The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096". + --support-links struct[[]codersdk.LinkConfig], $CODER_SUPPORT_LINKS + Support links to display in the top right drop down menu. + --update-check bool, $CODER_UPDATE_CHECK (default: false) Periodically check for new releases of Coder and inform the owner. The check is performed once per day. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy