hightower-gateway

Crates.iohightower-gateway
lib.rshightower-gateway
version0.1.7
created_at2025-10-09 18:50:29.76132+00
updated_at2025-10-12 01:37:16.542549+00
descriptionGateway service for the Hightower project
homepage
repositoryhttps://github.com/chrishayen/hightower-gateway
max_upload_size
id1876071
size299,945
Chris Hayen (chrishayen)

documentation

README

Hightower Gateway

Gateway service for the Hightower project.

Building

cargo build

Running

Using the Makefile (recommended):

make dev

Or directly with cargo:

HT_AUTH_KEY=test-auth-key cargo run

Testing

make test
# or
cargo test

Configuration

The gateway can be configured using environment variables:

  • HT_AUTH_KEY - Authentication key for the gateway (required)
  • HT_DEFAULT_USER - Default admin username (default: admin)
  • HT_DEFAULT_PASSWORD - Default admin password (default: admin)
  • RUST_LOG - Log level (default: info, use debug for verbose output)

Key-Value Store

By default, the gateway uses a temporary directory for the KV store. To use a persistent directory:

cargo run -- --kv /path/to/store

Web Console

The web console is rendered server-side using Askama templates located in the templates/ directory:

  • templates/login.html - Login page
  • templates/dashboard.html - Dashboard page
  • templates/login_alert.html - Login alert fragment
  • templates/nodes_table.html - Nodes table fragment

The templates compile with the Rust code, so no separate build step is needed.

Commit count: 0

cargo fmt