Remove the home-city name from docs/comments/UI strings and the external mirror IP (WAN) from code, docs and the Android cleartext allowlist, replacing the IP with mirror.invalid (set the real host locally, uncommitted). LAN mirror and routing keep working; the WAN fallback needs the real host set. Generic big-city map presets are kept (not identifying).
1.8 KiB
1.8 KiB
BRouter-Web на зеркале BalDav
Статический фронтенд nrenner/brouter-web 0.18.1, развёрнут на роутере (Keenetic uhttpd :88):
/opt/share/www/brouter-web/. Смотрит на свой RouteServer (ПК, systemd brouter.service, :17777).
Файлы кастомизации (кладутся рядом с распакованным brouter-web)
config.js— host RouteServer (LAN 192.168.1.18:17777 / WAN mirror.invalid:17777), профили с зеркала, базовые слои (ÖPNV дефолт, CARTO Dark «needs key» и т.д.), центр — опорная точка, профили trekking/shortest.baldav-custom.css+baldav-custom.js— подключены в index.html послеdist/brouter-web.js: тумблер день/ночь (☾/☀) в тулбаре → тёмная карта (invert только слой тайлов) + тёмная правая панель; авто-простановка нужных POI-оверлеев один раз (флаг localStoragebaldav_bw_overlays_v1).
Развёртывание
- Скачать
brouter-web.<ver>.zip(github nrenner/brouter-web), распаковать. - Положить туда
config.js,baldav-custom.css,baldav-custom.js. - В
index.htmlпосле<script src="dist/brouter-web.js"></script>добавить:<link rel="stylesheet" href="baldav-custom.css" />и<script src="baldav-custom.js"></script>. - Скопировать всё в докрут веб-сервера роутера. Доступ: http://192.168.1.1:88/brouter-web/ (+ WAN :8088).
Данные (сегменты .rd5 + профили) — в /opt/share/www/brouter/ на роутере и в
/mnt/02F6E7F6F6E7E7BD/brouter-mirror/ на ПК (для RouteServer).