inlets-svc

command module
v0.0.0-...-4eb4166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 15 Imported by: 0

README

Windows Service management for inlets PRO

Status

This is an early prototype of a shim to add an inlets PRO HTTP client as a Windows Service, so that it can be started upon reboot, and managed by the system.

Windows Services also allow for restarting of the tunnel process and logging.

Usage

  • Download the binary to C:\windows\
  • Create C:\inlets.json (with the contents as per below)
{
 "upstreams": ["openfaas.exit.o6s.io=http://127.0.0.1:8080"],       
 "url": "wss://alex-tunnel.exit.o6s.io",
 "license-file": "C:\\license.txt",
 "token": "TOKEN-HERE",
 "auto-tls": false
}
  • Create C:\license.txt (with the inlets PRO license)
  • Install the service with inlets-svc install
  • Start the service with inlets-svc start

Check the Event Viewer under Application Logs

License

MIT

Documentation

Rendered for windows/amd64

Overview

Example service program that beeps.

The program demonstrates how to create Windows service and install / remove it on a computer. It also shows how to stop / start / pause / continue any service, and how to write to event log. It also shows how to use debug facilities available in debug package.

Notes

Bugs

  • MessageBeep Windows api is broken on Windows 7, so this example does not beep when runs as service on Windows 7.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL