mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
feat: Add deployment settings page (#4590)
* Add base components for the Settings Page * WIP OIDC page * Imrove layout * Add table * Abstract option * Refactor badges * Load settings from the API * Update deployment page * feat: Add deployment settings page This allows deployment admins to view options set on their deployments. * Format * Remove replicas table since it's not used * Remove references to HA table * Fix tests * Improve language Co-authored-by: Bruno Quaresma <bruno@coder.com>
This commit is contained in:
co-authored by
Bruno Quaresma
parent
9b5d627a55
commit
6b1b3a2037
@@ -641,3 +641,14 @@ export const getAgentListeningPorts = async (
|
||||
)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const getDeploymentFlags =
|
||||
async (): Promise<TypesGen.DeploymentFlags> => {
|
||||
const response = await axios.get(`/api/v2/flags/deployment`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const getReplicas = async (): Promise<TypesGen.Replica[]> => {
|
||||
const response = await axios.get(`/api/v2/replicas`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ export interface DeploymentFlags {
|
||||
readonly oauth2_github_enterprise_base_url: StringFlag
|
||||
readonly oidc_allow_signups: BoolFlag
|
||||
readonly oidc_client_id: StringFlag
|
||||
readonly oidc_cliet_secret: StringFlag
|
||||
readonly oidc_client_secret: StringFlag
|
||||
readonly oidc_email_domain: StringFlag
|
||||
readonly oidc_issuer_url: StringFlag
|
||||
readonly oidc_scopes: StringArrayFlag
|
||||
@@ -304,7 +304,7 @@ export interface DeploymentFlags {
|
||||
readonly tls_cert_files: StringArrayFlag
|
||||
readonly tls_client_ca_file: StringFlag
|
||||
readonly tls_client_auth: StringFlag
|
||||
readonly tls_key_tiles: StringArrayFlag
|
||||
readonly tls_key_files: StringArrayFlag
|
||||
readonly tls_min_version: StringFlag
|
||||
readonly trace_enable: BoolFlag
|
||||
readonly secure_auth_cookie: BoolFlag
|
||||
|
||||
Reference in New Issue
Block a user