Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Janus-Gate

Browser extension builds

The extension is built from one source tree with two distribution targets:

  • Normal: mesh proxy connection only
  • Visa: includes the normal mesh features plus the VisaTracker integration

Build either target from extension/:

cd extension
npm run build:normal
npm run build:visa

The generated extension folders are:

extension/dist/normal
extension/dist/visa

Load the desired folder as an unpacked extension in Chrome during development, or package that folder for release. dist/ is generated and is not committed.

Shared mesh functionality lives in extension/src/shared/. VisaTracker-only files live in extension/src/visa/; the build script copies those files and adds the required permission only for the Visa target.




API Service

It communicates the extension available nodes in the mesh


Install Process

Generate an .env file for the binary to read

PORT=8787
HEADSCALE_API_KEY=<key>

Create a background service with systemd

/etc/systemd/system/janus-api.service

ini
[Unit]
Description=Janus API
After=network.target tailscaled.service

[Service]
Type=simple
WorkingDirectory=/home/<user>/janus-api
ExecStart=/home/<user>/janus-api/server
Restart=on-failure
RestartSec=5
User=<user>

[Install]
WantedBy=multi-user.target


Enable and start it:

sudo systemctl daemon-reload
sudo systemctl enable janus-api
sudo systemctl start janus-api
sudo systemctl status janus-api

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages