-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HTTPS and authentication for Homeui #191
base: master
Are you sure you want to change the base?
Conversation
KraPete
commented
Jan 21, 2025
•
edited
Loading
edited
#!/bin/bash | ||
|
||
sn=$(sudo wb-gen-serial -s | tr '[:upper:]' '[:lower:]') | ||
prefix=$(echo "$HTTP_HOST_IP" | sed 's/\./-/g') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а это точно хорошая идея? Если там какой-нибудь проброс портов, то это не будет работать. И это бы полбеды, но оно работать не будет со спецэффектами же.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Могу для запросов с IP передавать в теле запроса тот IP, что в строке браузера вбили.
- Для .local можно ходить в avahi-browse в контроллере, но при пробросе портов это тоже не поможет. Из JS браузера не сделать mDNS запрос
echo "Status: 200" | ||
echo "Content-type: text/plain" | ||
echo "" | ||
echo "$prefix.$sn.ip.xcvb.win" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не забыть домен поменять перед релизом