Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
046e97b024 | ||
|
|
72c4d7997a | ||
|
|
7c3e1ab278 |
No files matched your search
+11
-10
@@ -75,16 +75,17 @@ RUN python3 /app/code/patch_index.py && \
|
|||||||
rm -f /app/code/librechat/client/dist/assets/index.*.js.gz /app/code/librechat/client/dist/assets/index.*.js.br && \
|
rm -f /app/code/librechat/client/dist/assets/index.*.js.gz /app/code/librechat/client/dist/assets/index.*.js.br && \
|
||||||
echo "// coop-build-$(date +%s)" >> /app/code/librechat/client/dist/sw.js
|
echo "// coop-build-$(date +%s)" >> /app/code/librechat/client/dist/sw.js
|
||||||
|
|
||||||
# PWA chrome colors: LibreChat ships a teal theme_color (#009688) in the web
|
# PWA chrome colors: background_color set to CREAM #faf8f5 (Chrome's splash
|
||||||
# manifest (the bright green bar Firefox PWAs draw across the top) and black
|
# screen). theme_color is REMOVED by patch_index.py, which runs above: Firefox
|
||||||
# background_color. Point both at the light page color — CREAM #faf8f5, the
|
# for Android ignores <meta name=theme-color> and derives its PWA toolbar/status
|
||||||
# dashboard's page background (the manifest can only hold one value; custom2.js
|
# bar from the manifest theme_color plus a WHITE/BLACK navigation bar from
|
||||||
# re-syncs the meta tags to the app's actual theme at runtime). The index.html
|
# background_color — a static cream value cannot follow the app's dark theme and
|
||||||
# meta gets a light + dark pair so browser/PWA chrome matches the phone theme
|
# leaves light bands around the dark app. With theme_color absent Firefox uses
|
||||||
# natively. KEEP THESE THREE IN SYNC: this sed, custom.css's html:not(.dark)
|
# its own light/dark chrome. The index.html meta pair (applied below) still
|
||||||
# background, and custom2.js COOP_BG.light — the green wash #eaf3ea used to sit
|
# drives Chromium, and custom2.js re-syncs that meta to the resolved theme.
|
||||||
# in all three and made the installed app read as green.
|
# Keep custom.css's html:not(.dark) background and custom2.js COOP_BG.light in
|
||||||
RUN sed -i 's|"theme_color": *"#009688"|"theme_color":"#faf8f5"|; s|"background_color": *"#000000"|"background_color":"#faf8f5"|' /app/code/librechat/client/dist/manifest.webmanifest && \
|
# step with this value.
|
||||||
|
RUN sed -i 's|"background_color": *"#000000"|"background_color":"#faf8f5"|' /app/code/librechat/client/dist/manifest.webmanifest && \
|
||||||
sed -i 's|<meta name="theme-color" content="#171717" />|<meta name="theme-color" media="(prefers-color-scheme: light)" content="#faf8f5" />\n <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#22271f" />|' /app/code/librechat/client/dist/index.html
|
sed -i 's|<meta name="theme-color" content="#171717" />|<meta name="theme-color" media="(prefers-color-scheme: light)" content="#faf8f5" />\n <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#22271f" />|' /app/code/librechat/client/dist/index.html
|
||||||
|
|
||||||
# Log ownership guard: a host-side daily job creates the next day's dated log
|
# Log ownership guard: a host-side daily job creates the next day's dated log
|
||||||
|
|||||||
Binary file not shown.
+11
-1
@@ -206,10 +206,20 @@ speech:
|
|||||||
# KEENABLE_FETCH_URL (internal app, no third party). The instance URL is an
|
# KEENABLE_FETCH_URL (internal app, no third party). The instance URL is an
|
||||||
# env-var reference (real values never live in the YAML).
|
# env-var reference (real values never live in the YAML).
|
||||||
webSearch:
|
webSearch:
|
||||||
|
# SearXNG is reached on the internal container network, which resolves into
|
||||||
|
# private address space; LibreChat's SSRF guard blocks that unless the
|
||||||
|
# destination is explicitly exempted. Keep this host:port in step with
|
||||||
|
# SEARXNG_INSTANCE_URL (it is the search app's container hostname).
|
||||||
|
allowedAddresses:
|
||||||
|
- "01579db7-20c2-4f8c-b4fa-f0b6bec4a3dd:8888"
|
||||||
searchProvider: "searxng"
|
searchProvider: "searxng"
|
||||||
searxngInstanceUrl: "${SEARXNG_INSTANCE_URL}"
|
searxngInstanceUrl: "${SEARXNG_INSTANCE_URL}"
|
||||||
searxngSearchOptions:
|
searxngSearchOptions:
|
||||||
engines: "duckduckgo,brave"
|
# Brave's scraping engine now returns URL-cloaked "/go/v1/..." links (its
|
||||||
|
# 2026-11-11 anti-scraping change) and DuckDuckGo answers this host with a
|
||||||
|
# CAPTCHA, so both yield broken citations. Yahoo (Bing-backed) currently
|
||||||
|
# returns real destination URLs. Durable fix: the braveapi engine + key.
|
||||||
|
engines: "yahoo"
|
||||||
language: "en"
|
language: "en"
|
||||||
scraperProvider: "keenable"
|
scraperProvider: "keenable"
|
||||||
rerankerType: "none"
|
rerankerType: "none"
|
||||||
|
|||||||
+14
-1
@@ -66,7 +66,20 @@ try:
|
|||||||
mf = _json.load(open(MPATH, encoding="utf-8"))
|
mf = _json.load(open(MPATH, encoding="utf-8"))
|
||||||
mf["name"] = "Inference Co\u2011op"
|
mf["name"] = "Inference Co\u2011op"
|
||||||
mf["short_name"] = "Inference"
|
mf["short_name"] = "Inference"
|
||||||
mf["description"] = "Member-governed AI inference — private and renewable model choices."
|
mf["description"] = "Member-governed AI inference \u2014 private and renewable model choices."
|
||||||
|
# NO theme_color. Firefox for Android never implemented <meta name=theme-color>
|
||||||
|
# (the custom2.js sync therefore only reaches Chromium), and its PWA window
|
||||||
|
# takes the chrome colours from the manifest alone:
|
||||||
|
# android-components feature/pwa/ext/WebAppManifest.kt: toCustomTabConfig()
|
||||||
|
# sets toolbarColor = themeColor and navigationBarColor = WHITE/BLACK
|
||||||
|
# derived from background_color, but only when BOTH are present.
|
||||||
|
# A cream theme_color therefore paints a cream status/toolbar band and a
|
||||||
|
# pure-white navigation bar around the dark app, with no runtime override
|
||||||
|
# possible. With theme_color absent the config is null and Firefox uses its
|
||||||
|
# own light/dark toolbar surface, which follows the phone theme.
|
||||||
|
# Chromium still gets the per-scheme meta tags from the Dockerfile.
|
||||||
|
# background_color stays cream: Chrome's splash screen uses it.
|
||||||
|
mf.pop("theme_color", None)
|
||||||
# Deterministic icon list: explicit any/maskable entries (no dual-purpose
|
# Deterministic icon list: explicit any/maskable entries (no dual-purpose
|
||||||
# values — some Firefox Android versions mishandle "any maskable"), and
|
# values — some Firefox Android versions mishandle "any maskable"), and
|
||||||
# the launcher-suitable sizes first. Each src carries a per-build version
|
# the launcher-suitable sizes first. Each src carries a per-build version
|
||||||
|
|||||||
Reference in new issue
Block a user