Skip to content

binaryf0x/foxtime

Repository files navigation

Fox Time

An implementation of the Time over HTTPS Specification with a pretty front-end providing analog and digital clock displays synchronized using a simplified version of the NTP algorithm.

Demo site.

Usage

By default the server listens for HTTP connections on 127.0.0.1 port 8123.

--host <HOST>

Listens for connections by binding to <HOST> instead of 127.0.0.1.

--port <PORT>

Listens for connections by binding to <PORT> instead of 8123.

--h2c

Enables support for plaintext HTTP/2. Only supported when listening on TCP/IP. lis

--unix <PATH>

Creates a Unix domain socket at <PATH> to listen for connections.

--tls_cert

Enables support for HTTPS using the TLS certificate read from a PEM-encoded file at <PATH>. Requires --tls_key.

--tls_key

Enables support for HTTPS using the private key read for a PEM-encoded file at <PATH>. Requires --tls_cert.

-h, --help

Prints help text.

-V, --version

Prints the application version.

Building

The frontend component is located in the web directory and must be built first using npm:

$ npm install
$ npm run build

The backend component can now be built with Cargo:

$ cargo build

When built in debug mode the frontend components are served live from the dist directory. When built in release mode they are included in the binary.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages