Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

KraPete
Copy link
Contributor

@KraPete KraPete commented Jan 21, 2025

echo "deb http://deb.wirenboard.com/all experimental.homeui-https main" > /etc/apt/sources.list.d/homeui-https.list

#!/bin/bash

sn=$(sudo wb-gen-serial -s | tr '[:upper:]' '[:lower:]')
prefix=$(echo "$HTTP_HOST_IP" | sed 's/\./-/g')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а это точно хорошая идея? Если там какой-нибудь проброс портов, то это не будет работать. И это бы полбеды, но оно работать не будет со спецэффектами же.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Могу для запросов с IP передавать в теле запроса тот IP, что в строке браузера вбили.
  2. Для .local можно ходить в avahi-browse в контроллере, но при пробросе портов это тоже не поможет. Из JS браузера не сделать mDNS запрос

echo "Status: 200"
echo "Content-type: text/plain"
echo ""
echo "$prefix.$sn.ip.xcvb.win"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не забыть домен поменять перед релизом

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants