Skip to content

Commit cc533de

Browse files
committed
Update environment variables and prod config
Moved and cleaned up several PUBLIC_* variables in .env for better organization. Added PUBLIC_ORIGIN and PUBLIC_PLAUSIBLE_SCRIPT_URL to chart/env/prod.yaml to ensure correct values in production.
1 parent b609c16 commit cc533de

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.env

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ PUBLIC_APP_GUEST_MESSAGE=# a message to the guest user. If not set, no message w
2424
PUBLIC_APP_NAME=ChatUI # name used as title throughout the app
2525
PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
2626
PUBLIC_APP_DESCRIPTION=# description used throughout the app
27-
PUBLIC_APP_DATA_SHARING=# Set to 1 to enable an option in the user settings to share conversations with model authors
27+
PUBLIC_SMOOTH_UPDATES=false # set to true to enable smoothing of messages client-side, can be CPU intensive
28+
PUBLIC_ORIGIN=
29+
PUBLIC_SHARE_PREFIX=
30+
PUBLIC_GOOGLE_ANALYTICS_ID=
31+
PUBLIC_PLAUSIBLE_SCRIPT_URL=
32+
PUBLIC_APPLE_APP_ID=
2833

2934
COUPLE_SESSION_WITH_COOKIE_NAME=
3035
OPENID_CLIENT_ID=
@@ -105,16 +110,6 @@ TRUSTED_EMAIL_HEADER=# header to use to get the user email, only use if you know
105110
ADMIN_CLI_LOGIN=true # set to false to disable the CLI login
106111
ADMIN_TOKEN=#We recommend leaving this empty, you can get the token from the terminal.
107112

108-
PUBLIC_SMOOTH_UPDATES=false # set to true to enable smoothing of messages client-side, can be CPU intensive
109-
PUBLIC_ORIGIN=#https://huggingface.co
110-
PUBLIC_SHARE_PREFIX=#https://hf.co/chat
111-
112-
# mostly huggingchat specific
113-
PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
114-
PUBLIC_PLAUSIBLE_SCRIPT_URL=#/js/script.js / Leave empty to disable
115-
PUBLIC_APPLE_APP_ID=#1234567890 / Leave empty to disable
116-
117-
118113
### Feature Flags ###
119114
LLM_SUMMARIZATION=true # generate conversation titles with LLMs
120115

chart/env/prod.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ envVars:
6565
MESSAGES_BEFORE_LOGIN: "999"
6666
PUBLIC_APP_ASSETS: "huggingchat"
6767
PUBLIC_APP_NAME: "HuggingChat"
68+
PUBLIC_ORIGIN: "https://huggingface.co"
69+
PUBLIC_PLAUSIBLE_SCRIPT_URL: "/js/script.js"
6870

6971
TASK_MODEL: "Qwen/Qwen3-4B-Instruct-2507"
7072
LLM_ROUTER_ARCH_BASE_URL: "https://router.huggingface.co/v1"

0 commit comments

Comments
 (0)