tuzig/webexec

Add daemon with multi-user support

开放

#68 创建于 2021年9月23日

 (1 条评论) (0 个反应) (0 位负责人)Go (3 个派生)auto 404
enhancementhacktoberfest

仓库指标

星标
 (38 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

To better support a shared dev server, we need a daemon that launches on boot and run as root.

Upon initialization, the daemon will scan all users $HOME looking for ~/.config/webexec if found, it will read the config to get the user's fingerprint (aka public key) and add it to its users list. It will use the users list for two things:

  • Accepting WHIP connection for all the users' fingerprints
  • Update peerbook with the list of users' fingerprints

Upon a SIGHUP signal to the daemon it willclear the peer list and starts the scan.

Once a connection request is received a webexec user agent will be launched and used to establish the peer connection.

贡献者指南