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:
Philip Peterson 2026-06-14 03:13:31 -07:00
parent 2a2c524d16
commit 45d673c292
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,9 @@
sed -i "s|OPENCLAW_HOME=.*|OPENCLAW_HOME=/root/.openclaw|" .env sed -i "s|OPENCLAW_HOME=.*|OPENCLAW_HOME=/root/.openclaw|" .env
sed -i "s|PORT=.*|PORT=4310|" .env sed -i "s|PORT=.*|PORT=4310|" .env
fi 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 install
npm run build npm run build
exec npm run dev:ui exec npm run dev:ui

View file

@ -56,6 +56,7 @@
enableACME = true; enableACME = true;
forceSSL = false; forceSSL = false;
addSSL = true; addSSL = true;
basicAuthFile = "/var/openclaw/htpasswd";
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:4310/"; proxyPass = "http://127.0.0.1:4310/";