HTTPS And Mesh
The PC printer driver can expose HTTPS through Caddy and PeerJS signaling through/mesh.
HTTPS Conditions
HTTPS starts only when all of these are true:features.httpsEnabledistrue.caddy.enabledistrue.- The runtime platform is Windows.
- Certificates exist in
assets/certs. - Caddy can be installed or reused.
Certificate Files
Required files:Caddy Install
Caddy setup uses this order:- Reuse
assets/caddy/bin/caddy.exeif already installed with.installed. - Copy bundled
caddy.exefrom known local paths. - Download Caddy from GitHub release URL.
2.6.4.
Generated Caddyfile
The driver writes a Caddyfile like:caddy.httpsPort is not 443, the site address includes the port.
Caddy Runtime
Caddy runs as a child process with:XDG_DATA_HOMEset toassets/caddy/dataXDG_CONFIG_HOMEset toassets/caddy/config- working directory set to
assets/caddy
2000ms delay.
Mesh Signaling
Whenfeatures.meshEnabled is true, the driver mounts PeerJS at:
GET /mesh-status returns:
- whether mesh is enabled
- mesh path
- port
- connected peer IDs
- peer count