Repository navigation
Conversation
LAN_HOSTS (comma-separated host:port, e.g. 192.168.0.162:3300) adds those hosts to the accepted Host list and gives requests on them a session cookie without Secure, since no HTTPS is in front of them. Unset, behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Результат
Вимога PF-xxx / задача: не з роадмапу; запуск на домашньому сервері (Raspberry Pi) без reverse proxy.
Що зміниться для користувача і чому: зараз дашборд приймає лише Host
localhost:3300/127.0.0.1:3300або HTTPSPUBLIC_ORIGIN, а cookie сесії завждиSecure, тож наhttp://<IP в локальній мережі>:3300вхід неможливий. Нова необов'язкова зміннаLAN_HOSTS(через кому,host:port) додає ці адреси до дозволених Host, і вхід через них отримує cookie безSecure. Для всіх інших Host, зокрема localhost іPUBLIC_ORIGIN,Secureлишається. БезLAN_HOSTSповедінка не змінюється.Перевірка
Команди та фактичний результат (або явно «не виконано»):
node --test dist/test/*.test.js: 743 тести, 738 pass, 0 failtsc --noEmit: без помилок;prettier --checkдля змінених.ts: окpython3 scripts/check_repository.py: Foundation checks passedПеревірені помилки / крайові випадки: новий тест у
test/web.test.ts: вхід через LAN-адресу дає 200 і cookie безSecure; вхід через127.0.0.1дає cookie зSecure; невідомий Host у мережі дає 403.Експлуатація
Міграції, сумісність, зміни доступу, rollout / rollback (або «не стосується»): міграцій немає. Новий параметр необов'язковий; без нього нічого не змінюється. Пароль і сесія через
LAN_HOSTSйдуть мережею незашифрованими, тому це лише для довіреної локальної мережі. Для такого доступу порт треба публікувати не тільки на loopback.Оновлена документація:
deploy/config-examples/app.env.example🤖 Generated with Claude Code