mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: specify a custom "terms of service" link (#13068)
This commit is contained in:
@@ -200,6 +200,7 @@ type DeploymentValues struct {
|
||||
AllowWorkspaceRenames serpent.Bool `json:"allow_workspace_renames,omitempty" typescript:",notnull"`
|
||||
Healthcheck HealthcheckConfig `json:"healthcheck,omitempty" typescript:",notnull"`
|
||||
CLIUpgradeMessage serpent.String `json:"cli_upgrade_message,omitempty" typescript:",notnull"`
|
||||
TermsOfServiceURL serpent.String `json:"terms_of_service_url,omitempty" typescript:",notnull"`
|
||||
|
||||
Config serpent.YAMLConfigPath `json:"config,omitempty" typescript:",notnull"`
|
||||
WriteConfig serpent.Bool `json:"write_config,omitempty" typescript:",notnull"`
|
||||
@@ -1683,6 +1684,14 @@ when required by your organization's security policy.`,
|
||||
YAML: "secureAuthCookie",
|
||||
Annotations: serpent.Annotations{}.Mark(annotationExternalProxies, "true"),
|
||||
},
|
||||
{
|
||||
Name: "Terms of Service URL",
|
||||
Description: "A URL to an external Terms of Service that must be accepted by users when logging in.",
|
||||
Flag: "terms-of-service-url",
|
||||
Env: "CODER_TERMS_OF_SERVICE_URL",
|
||||
YAML: "termsOfServiceURL",
|
||||
Value: &c.TermsOfServiceURL,
|
||||
},
|
||||
{
|
||||
Name: "Strict-Transport-Security",
|
||||
Description: "Controls if the 'Strict-Transport-Security' header is set on all static file responses. " +
|
||||
|
||||
Reference in New Issue
Block a user