Skip to content

Commit

Permalink
docs: add mdbook documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tangram committed Feb 11, 2025
1 parent 8990c0d commit 85ab211
Show file tree
Hide file tree
Showing 15 changed files with 659 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ Authly is pre-alpha software, currently with a minimal feature set, but several
- [ ] OATH TOTP support for authenticator apps
- [ ] OATH HOTP support for recovery codes

## Documentation

Documentation can be built using `mdbook`:

```bash
# serve documentation with hot reloading
mdbook serve docs

# build HTML documentation
mdbook build docs
```

## License

Authly is licensed under the [GNU Affero General Public License v3.0](LICENSE) (AGPLv3) license. Contact us for commercial licensing options.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
10 changes: 10 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[book]
title = "Authly Documentation"
authors = ["Protojour dev team <[email protected]>"]
language = "en"
multilingual = false
src = "src"

[preprocessor.index]

[preprocessor.links]
6 changes: 6 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Summary

- [Introduction](./introduction.md)
- [Getting started](./getting_started.md)
- [Authly documents](./documents.md)
- [Authly environment variables](./configuration.md)
104 changes: 104 additions & 0 deletions docs/src/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Authly environment variables

Configuration values are always read from the environment.

These values are closely tied to the platform Authly runs on,
and are not runtime-configurable.

## `AUTHLY_ID`

(**required**; 32-byte hex string; no default)

A unique identifier for this Authly instance. It should be fairly unique, should never change, and is not particularly secret. Global uniqueness is not required, but a form of local uniqueness is required in closed systems running several authly instances. Can be generated with `docker run ghcr.io/protojour/authly generate-authly-id`.

## `AUTHLY_HOSTNAME`

(string; default `authly`)

The hostname against which to generate server certificates.

## `AUTHLY_SERVER_PORT`

(integer; default `443`)

The port on which to run the API/web server.

## `AUTHLY_DOCUMENT_PATH`

(list of path strings; default `/etc/authly/documents`)

A list of paths to scan for documents during startup.

## `AUTHLY_ETC_DIR`

(path string; default `/etc/authly`)

Configuration directory.

## `AUTHLY_DATA_DIR`

(path string; default `/var/lib/authly/data`)

Database directory.

## `AUTHLY_BAO_URL`

(url string; no default)

OpenBao URL for master encryption key storage.

## `AUTHLY_BAO_TOKEN`

(string; no default)

OpenBao token support for legacy setups.

## `AUTHLY_CLUSTER_NODE_ID`

(integer; no default)

## `AUTHLY_CLUSTER_API_NODES`

(ip address string; no default)

## `AUTHLY_CLUSTER_RAFT_NODES`

(ip address string; no default)

## `AUTHLY_CLUSTER_RAFT_SECRET`

(string; no default)

## `AUTHLY_CLUSTER_API_SECRET`

(string; no default)

## `AUTHLY_K8S`

(boolean; default `false`)

## `AUTHLY_K8S_STATEFULSET`

(string; default `authly`)

## `AUTHLY_K8S_HEADLESS_SVC`

(string; default `authly-cluster`)

## `AUTHLY_K8S_REPLICAS`

(integer; default `1`)

## `AUTHLY_K8S_AUTH_HOSTNAME`

(string; no default)

## `AUTHLY_K8S_AUTH_SERVER_PORT`

(integer; no default)

## `AUTHLY_EXPORT_TLS_TO_ETC`

(boolean; default `false`)

Whether to export certificates and identities to `AUTHLY_ETC_DIR`.
Loading

0 comments on commit 85ab211

Please sign in to comment.