@@ -4,7 +4,7 @@ A lightweight Go service that combines ping health checks with power management
44
55## Features
66
7- - ** HTTP Health Endpoints** : ` /ping ` (monitored) and ` /health ` ( healthcheck)
7+ - ** HTTP Health Endpoints** : ` /ping ` (monitored) and ` /healthcheck `
88- ** Activity Monitoring** : Tracks requests to ` /ping ` endpoint
99- ** Configurable Timeouts** : Environment-controlled inactivity periods
1010- ** GCP Integration** : Automatic instance suspension via GCP API service
@@ -24,14 +24,13 @@ docker run -p 8808:8808 -e INACTIVITY_TIMEOUT=90 lightswitch:latest
2424| ` PORT ` | ` 8808 ` | HTTP server port |
2525| ` INACTIVITY_TIMEOUT ` | ` 90 ` | Seconds of inactivity before shutdown |
2626| ` CHECK_INTERVAL ` | ` 30 ` | Seconds between activity checks |
27- | ` LIBOPS_PROXY_URL ` | - | GCP proxy URL for suspension |
2827| ` LIBOPS_KEEP_ONLINE ` | - | Set to "yes" to disable auto-shutdown |
2928| ` LOG_LEVEL ` | ` INFO ` | Logging level (DEBUG, INFO, WARN, ERROR) |
3029
3130### Endpoints
3231
3332- ` GET /ping ` - Returns "pong", activity is logged and monitored
34- - ` GET /health ` - Returns "healthy", used for container healthchecks
33+ - ` GET /healthcheck ` - used for container healthchecks
3534
3635## Integration
3736
@@ -43,7 +42,7 @@ This service is designed to work in tandem with [ppb (Proxy Power Button)](https
4342 - Receives incoming requests for dormant instances
4443 - Starts the GCE instance via GCP API
4544 - Proxies requests to the now-running backend
46-
45+
47462 . ** lightsout (Shutdown)** : Monitors activity and automatically shuts down instances during idle periods
4847 - Tracks activity via ` /ping ` endpoint calls
4948 - Monitors for configurable inactivity timeouts
0 commit comments