Files
infix/src/netbrowse
Joachim Wiberg b33294950f netbrowse: prestudy of available txt records, use adminurl for Infix
This commit includes a small prestudy, done over a period of two weeks,
to gather information about common txt records used by hosts.  The most
well-documented is the Apple Printing Spec, which among other things
defines adminurl.  A proposed version 1 of the Infix txt record spec is
included in the document.  I'm recommending alternative 2:

"vv=1" "vendor=Qemu" "product=VM" "ty=x86-64" "vn=KernelKit" "on=Infix" "ov=v24.03.0"

Including this information would enable quickly scanning a network to
see if the latest version of the software has been deployed.  Please
note, I've not included the U-Boot firmware version in this proposal,
but it could be included as "vs=2023.10-kkit3", or similar.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-04-15 15:36:41 +02:00
..
2024-04-15 15:36:41 +02:00
2024-04-15 15:36:41 +02:00

mDNS Network Browser

This program is a Python Flask app that provides an mDNS browser for, e.g., Nginx. It is intended to answer calls to https://network.local

A UNIX socket, for fastcgi, is created in /tmp/netbrowse.sock with permissions 0660 as the user and group the program is started as.

When using Finit this can be achieved with

service @www-data:www-data netbrowse network.local

In your Nginx server configuration, add:

location /browse {
		include fastcgi_params;
		fastcgi_pass unix:/tmp/netbrowse.sock;
}

For more a elaborate setup, you can have another server block:

server {
    listen 80;
    listen [::]:80;
    server_name network.local;

    location / {
        include fastcgi_params;
        fastcgi_pass unix:/tmp/netbrowse.sock;
    }
}