openclaw: default to English and add basic auth
- Patch app source at startup to change default language from zh to en - Add basicAuth (ironmagma) to nginx vhost for claw.quineglobal.com Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2a2c524d16
commit
45d673c292
2 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,9 @@
|
|||
sed -i "s|OPENCLAW_HOME=.*|OPENCLAW_HOME=/root/.openclaw|" .env
|
||||
sed -i "s|PORT=.*|PORT=4310|" .env
|
||||
fi
|
||||
sed -i 's/resolveUiLanguage(url.searchParams, "zh")/resolveUiLanguage(url.searchParams, "en")/g' src/ui/server.ts
|
||||
sed -i 's/hasExplicitLanguage ? resolvedLanguage : "zh"/hasExplicitLanguage ? resolvedLanguage : "en"/g' src/ui/server.ts
|
||||
sed -i 's/language: "zh",/language: "en",/g' src/runtime/ui-preferences.ts
|
||||
npm install
|
||||
npm run build
|
||||
exec npm run dev:ui
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
enableACME = true;
|
||||
forceSSL = false;
|
||||
addSSL = true;
|
||||
basicAuthFile = "/var/openclaw/htpasswd";
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:4310/";
|
||||
|
|
|
|||
Loading…
Reference in a new issue