diff --git a/docs/images/self-hosting/configuration/overrides/page.png b/docs/images/self-hosting/configuration/overrides/page.png new file mode 100644 index 000000000..660273d4f Binary files /dev/null and b/docs/images/self-hosting/configuration/overrides/page.png differ diff --git a/docs/self-hosting/configuration/envars.mdx b/docs/self-hosting/configuration/envars.mdx index 90f3b2207..340f64590 100644 --- a/docs/self-hosting/configuration/envars.mdx +++ b/docs/self-hosting/configuration/envars.mdx @@ -794,3 +794,9 @@ If export type is set to `otlp`, you will have to configure a value for `OTEL_EX The TLS header used to propagate the client certificate from the load balancer to the server. + +## Environment Variable Overrides + +If you can't directly access and modify environment variables, you can easily update them using the server admin console. + +![Environment Variables Overrides Page](../../images/self-hosting/configuration/overrides/page.png) diff --git a/frontend/src/layouts/AdminLayout/Sidebar.tsx b/frontend/src/layouts/AdminLayout/Sidebar.tsx index ee6e18784..807bb307f 100644 --- a/frontend/src/layouts/AdminLayout/Sidebar.tsx +++ b/frontend/src/layouts/AdminLayout/Sidebar.tsx @@ -31,7 +31,7 @@ const generalTabs = [ link: "/admin/caching" }, { - label: "Environment", + label: "Environment Variables", icon: "unlock", link: "/admin/environment" } diff --git a/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx b/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx index ea4467131..000dd1f0d 100644 --- a/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx +++ b/frontend/src/pages/admin/EnvironmentPage/EnvironmentPage.tsx @@ -16,8 +16,8 @@ export const EnvironmentPage = () => {
diff --git a/frontend/src/pages/admin/EnvironmentPage/components/EnvironmentPageForm.tsx b/frontend/src/pages/admin/EnvironmentPage/components/EnvironmentPageForm.tsx index 2a629bf95..0d2adba9d 100644 --- a/frontend/src/pages/admin/EnvironmentPage/components/EnvironmentPageForm.tsx +++ b/frontend/src/pages/admin/EnvironmentPage/components/EnvironmentPageForm.tsx @@ -1,6 +1,8 @@ import { useCallback, useEffect, useMemo, useState } from "react"; import { Control, Controller, useForm, useWatch } from "react-hook-form"; import { + faArrowUpRightFromSquare, + faBookOpen, faChevronRight, faExclamationTriangle, faMagnifyingGlass @@ -213,8 +215,25 @@ export const EnvironmentPageForm = () => {

Overrides

+ +
+ + Docs + +
+
-

Override specific environment variables.

+

+ Override specific environment variables. After saving, it may take up to 5 minutes for + variables to propagate throughout every container. +

@@ -224,7 +243,7 @@ export const EnvironmentPageForm = () => { isLoading={isSubmitting} isDisabled={isSubmitting || !isDirty} > - Save Overrides + Save