Skip to content

Commit

Permalink
docs: update refs
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu committed Nov 11, 2024
1 parent 44e1487 commit 9e31277
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The following environment variables are supported by the container:
- `CN_WAIT_SLEEP_DURATION`: Delay between startup "health checks" (default to `10` seconds).
- `CN_MAX_RAM_PERCENTAGE`: Value passed to Java option `-XX:MaxRAMPercentage`.
- `CN_DEBUG_PORT`: port of remote debugging (if omitted, remote debugging will be disabled).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `couchbase`, `spanner`, `sql`, or `hybrid`; default to `sql`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `couchbase`, `sql`, or `hybrid`; default to `sql`).
- `CN_HYBRID_MAPPING`: Specify data mapping for each persistence (default to `"{}"`). Note this environment only takes effect when `CN_PERSISTENCE_TYPE` is set to `hybrid`. See [hybrid mapping](#hybrid-mapping) section for details.
- `CN_COUCHBASE_URL`: Address of Couchbase server (default to `localhost`).
- `CN_COUCHBASE_USER`: Username of Couchbase server (default to `admin`).
Expand All @@ -76,8 +76,6 @@ The following environment variables are supported by the container:
- `CN_GOOGLE_SECRET_VERSION_ID`: Janssen secret version ID in Google Secret Manager. Defaults to `latest`, which is recommended.
- `CN_GOOGLE_SECRET_NAME_PREFIX`: Prefix for Janssen secret in Google Secret Manager. Defaults to `jans`. If left `jans-secret` secret will be created.
- `CN_GOOGLE_SECRET_MANAGER_PASSPHRASE`: Passphrase for Janssen secret in Google Secret Manager. This is recommended to be changed and defaults to `secret`.
- `CN_GOOGLE_SPANNER_INSTANCE_ID`: Google Spanner instance ID.
- `CN_GOOGLE_SPANNER_DATABASE_ID`: Google Spanner database ID.
- `CN_JETTY_REQUEST_HEADER_SIZE`: Maximum size of request header accepted by Jetty (default to `8192`).
- `CN_AUTH_APP_LOGGERS`: Custom logging configuration in JSON-string format with hash type (see [Configure app loggers](#configure-app-loggers) section for details).
- `CN_PROMETHEUS_PORT`: Port used by Prometheus JMX agent (default to empty string). To enable Prometheus JMX agent, set the value to a number. See [Exposing metrics](#exposing-metrics) for details.
Expand Down Expand Up @@ -185,12 +183,12 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c

```
{
"default": "<couchbase|spanner|sql>",
"user": "<couchbase|spanner|sql>",
"site": "<couchbase|spanner|sql>",
"cache": "<couchbase|spanner|sql>",
"token": "<couchbase|spanner|sql>",
"session": "<couchbase|spanner|sql>",
"default": "<couchbase|sql>",
"user": "<couchbase|sql>",
"site": "<couchbase|sql>",
"cache": "<couchbase|sql>",
"token": "<couchbase|sql>",
"session": "<couchbase|sql>",
}
```
Expand All @@ -199,11 +197,11 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c
```
{
"default": "sql",
"user": "spanner",
"user": "sql",
"site": "sql",
"cache": "sql",
"token": "couchbase",
"session": "spanner",
"session": "sql",
}
```
Expand Down
20 changes: 9 additions & 11 deletions docs/janssen-server/reference/kubernetes/docker-jans-casa.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The following environment variables are supported by the container:
- `CN_WAIT_MAX_TIME`: How long the startup "health checks" should run (default to `300` seconds).
- `CN_WAIT_SLEEP_DURATION`: Delay between startup "health checks" (default to `10` seconds).
- `CN_MAX_RAM_PERCENTAGE`: Value passed to Java option `-XX:MaxRAMPercentage`.
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, `spanner`, or `hybrid`; default to `sql`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, or `hybrid`; default to `sql`).
- `CN_HYBRID_MAPPING`: Specify data mapping for each persistence (default to `"{}"`). Note this environment only takes effect when `CN_PERSISTENCE_TYPE` is set to `hybrid`. See [hybrid mapping](#hybrid-mapping) section for details.
- `CN_COUCHBASE_URL`: Address of Couchbase server (default to `localhost`); required if `CN_PERSISTENCE_TYPE` is set to `couchbase` or `hybrid`.
- `CN_COUCHBASE_USER`: Username of Couchbase server (default to `admin`); required if `CN_PERSISTENCE_TYPE` is set to `couchbase` or `hybrid`.
Expand All @@ -64,8 +64,6 @@ The following environment variables are supported by the container:
- `CN_SQL_DB_PORT`: Port of SQL backend (default to `3306`).
- `CN_SQL_DB_NAME`: Database name (default to `jans`)
- `CN_SQL_DB_USER`: Username to interact with SQL backend (default to `jans`).
- `CN_GOOGLE_SPANNER_INSTANCE_ID`: Instance ID of Google Spanner (default to empty string).
- `CN_GOOGLE_SPANNER_DATABASE_ID`: Database ID of Google Spanner (default to empty string).
- `GOOGLE_APPLICATION_CREDENTIALS`: Optional JSON file (contains Google credentials) that can be injected into container for authentication. Refer to https://cloud.google.com/docs/authentication/provide-credentials-adc#how-to for supported credentials.
- `GOOGLE_PROJECT_ID`: ID of Google project.
- `CN_GOOGLE_SECRET_VERSION_ID`: Janssen secret version ID in Google Secret Manager. Defaults to `latest`, which is recommended.
Expand Down Expand Up @@ -133,12 +131,12 @@ Hybrid persistence supports all available persistence types. To configure hybrid

```
{
"default": "<couchbase|spanner|sql>",
"user": "<couchbase|spanner|sql>",
"site": "<couchbase|spanner|sql>",
"cache": "<couchbase|spanner|sql>",
"token": "<couchbase|spanner|sql>",
"session": "<couchbase|spanner|sql>",
"default": "<couchbase|sql>",
"user": "<couchbase|sql>",
"site": "<couchbase|sql>",
"cache": "<couchbase|sql>",
"token": "<couchbase|sql>",
"session": "<couchbase|sql>",
}
```
Expand All @@ -147,10 +145,10 @@ Hybrid persistence supports all available persistence types. To configure hybrid
```
{
"default": "sql",
"user": "spanner",
"user": "sql",
"site": "sql",
"cache": "sql",
"token": "couchbase",
"session": "spanner",
"session": "sql",
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The following environment variables are supported by the container:
- `CN_SECRET_GOOGLE_SECRET_VERSION_ID`: Google Secret Manager version ID (default to `latest`).
- `CN_SECRET_GOOGLE_SECRET_NAME_PREFIX`: Prefix for Google Secret Manager name (default to `jans`).
- `CN_SECRET_GOOGLE_SECRET_MANAGER_PASSPHRASE`: Passphrase for Google Secret Manager (default to `secret`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, `spanner`, or `hybrid`; default to `sql`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, or `hybrid`; default to `sql`).
- `CN_HYBRID_MAPPING`: Specify data mapping for each persistence (default to `"{}"`). Note this environment only takes effect when `CN_PERSISTENCE_TYPE` is set to `hybrid`. See [hybrid mapping](#hybrid-mapping) section for details.
- `CN_COUCHBASE_URL`: Address of Couchbase server (default to `localhost`).
- `CN_COUCHBASE_USER`: Username of Couchbase server (default to `admin`).
Expand All @@ -69,8 +69,6 @@ The following environment variables are supported by the container:
- `CN_GOOGLE_SECRET_VERSION_ID`: Janssen secret version ID in Google Secret Manager. Defaults to `latest`, which is recommended.
- `CN_GOOGLE_SECRET_NAME_PREFIX`: Prefix for Janssen secret in Google Secret Manager. Defaults to `jans`. If left `jans-secret` secret will be created.
- `CN_GOOGLE_SECRET_MANAGER_PASSPHRASE`: Passphrase for Janssen secret in Google Secret Manager. This is recommended to be changed and defaults to `secret`.
- `CN_GOOGLE_SPANNER_INSTANCE_ID`: Google Spanner instance ID.
- `CN_GOOGLE_SPANNER_DATABASE_ID`: Google Spanner database ID.
- `CN_SQL_DB_HOST`: Hostname of the SQL database (default to `localhost`).
- `CN_SQL_DB_PORT`: Port of the SQL database (default to `3306` for MySQL).
- `CN_SQL_DB_NAME`: SQL database name (default to `jans`).
Expand Down Expand Up @@ -224,12 +222,12 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c

```
{
"default": "<couchbase|spanner|sql>",
"user": "<couchbase|spanner|sql>",
"site": "<couchbase|spanner|sql>",
"cache": "<couchbase|spanner|sql>",
"token": "<couchbase|spanner|sql>",
"session": "<couchbase|spanner|sql>",
"default": "<couchbase|sql>",
"user": "<couchbase|sql>",
"site": "<couchbase|sql>",
"cache": "<couchbase|sql>",
"token": "<couchbase|sql>",
"session": "<couchbase|sql>",
}
```

Expand All @@ -238,10 +236,10 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c
```
{
"default": "sql",
"user": "spanner",
"user": "sql",
"site": "sql",
"cache": "sql",
"token": "couchbase",
"session": "spanner",
"session": "sql",
}
```
20 changes: 9 additions & 11 deletions docs/janssen-server/reference/kubernetes/docker-jans-config-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following environment variables are supported by the container:
- `CN_WAIT_MAX_TIME`: How long the startup "health checks" should run (default to `300` seconds).
- `CN_WAIT_SLEEP_DURATION`: Delay between startup "health checks" (default to `10` seconds).
- `CN_MAX_RAM_PERCENTAGE`: Value passed to Java option `-XX:MaxRAMPercentage`.
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `couchbase`, `sql`, `spanner`, or `hybrid`; default to `sql`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `couchbase`, `sql`, or `hybrid`; default to `sql`).
- `CN_HYBRID_MAPPING`: Specify data mapping for each persistence (default to `"{}"`). Note this environment only takes effect when `CN_PERSISTENCE_TYPE` is set to `hybrid`. See [hybrid mapping](#hybrid-mapping) section for details.
- `CN_COUCHBASE_URL`: Address of Couchbase server (default to `localhost`).
- `CN_COUCHBASE_USER`: Username of Couchbase server (default to `admin`).
Expand All @@ -70,8 +70,6 @@ The following environment variables are supported by the container:
- `CN_GOOGLE_SECRET_VERSION_ID`: Janssen secret version ID in Google Secret Manager. Defaults to `latest`, which is recommended.
- `CN_GOOGLE_SECRET_NAME_PREFIX`: Prefix for Janssen secret in Google Secret Manager. Defaults to `jans`. If left `jans-secret` secret will be created.
- `CN_GOOGLE_SECRET_MANAGER_PASSPHRASE`: Passphrase for Janssen secret in Google Secret Manager. This is recommended to be changed and defaults to `secret`.
- `CN_GOOGLE_SPANNER_INSTANCE_ID`: Google Spanner instance ID.
- `CN_GOOGLE_SPANNER_DATABASE_ID`: Google Spanner database ID.
- `CN_CONFIG_API_APP_LOGGERS`: Custom logging configuration in JSON-string format with hash type (see [Configure app loggers](#configure-app-loggers) section for details).
- `CN_CONFIG_API_PLUGINS`: Comma-separated plugin names that should be enabled (available plugins are `admin-ui`, `scim`, `fido2`, `user-mgt`, `jans-link`, `kc-saml`, `kc-link`, `lock`). Note that unknown plugin name will be ignored.
- `CN_TOKEN_SERVER_BASE_URL`: Base URL of token server (default to empty).
Expand Down Expand Up @@ -180,12 +178,12 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c

```
{
"default": "<couchbase|spanner|sql>",
"user": "<couchbase|spanner|sql>",
"site": "<couchbase|spanner|sql>",
"cache": "<couchbase|spanner|sql>",
"token": "<couchbase|spanner|sql>",
"session": "<couchbase|spanner|sql>",
"default": "<couchbase|sql>",
"user": "<couchbase|sql>",
"site": "<couchbase|sql>",
"cache": "<couchbase|sql>",
"token": "<couchbase|sql>",
"session": "<couchbase|sql>",
}
```
Expand All @@ -194,11 +192,11 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c
```
{
"default": "sql",
"user": "spanner",
"user": "sql",
"site": "sql",
"cache": "sql",
"token": "couchbase",
"session": "spanner",
"session": "sql",
}
```
Expand Down
18 changes: 9 additions & 9 deletions docs/janssen-server/reference/kubernetes/docker-jans-fido2.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following environment variables are supported by the container:
- `CN_WAIT_MAX_TIME`: How long the startup "health checks" should run (default to `300` seconds).
- `CN_WAIT_SLEEP_DURATION`: Delay between startup "health checks" (default to `10` seconds).
- `CN_MAX_RAM_PERCENTAGE`: Value passed to Java option `-XX:MaxRAMPercentage`.
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, `spanner`, or `hybrid`; default to `sql`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, or `hybrid`; default to `sql`).
- `CN_HYBRID_MAPPING`: Specify data mapping for each persistence (default to `"{}"`). Note this environment only takes effect when `CN_PERSISTENCE_TYPE` is set to `hybrid`. See [hybrid mapping](#hybrid-mapping) section for details.
- `CN_COUCHBASE_URL`: Address of Couchbase server (default to `localhost`).
- `CN_COUCHBASE_USER`: Username of Couchbase server (default to `admin`).
Expand Down Expand Up @@ -135,12 +135,12 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c

```
{
"default": "<couchbase|spanner|sql>",
"user": "<couchbase|spanner|sql>",
"site": "<couchbase|spanner|sql>",
"cache": "<couchbase|spanner|sql>",
"token": "<couchbase|spanner|sql>",
"session": "<couchbase|spanner|sql>",
"default": "<couchbase|sql>",
"user": "<couchbase|sql>",
"site": "<couchbase|sql>",
"cache": "<couchbase|sql>",
"token": "<couchbase|sql>",
"session": "<couchbase|sql>",
}
```
Expand All @@ -149,11 +149,11 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c
```
{
"default": "sql",
"user": "spanner",
"user": "sql",
"site": "sql",
"cache": "sql",
"token": "couchbase",
"session": "spanner",
"session": "sql",
}
```
Expand Down
23 changes: 11 additions & 12 deletions docs/janssen-server/reference/kubernetes/docker-jans-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following environment variables are supported by the container:
- `CN_WAIT_MAX_TIME`: How long the startup "health checks" should run (default to `300` seconds).
- `CN_WAIT_SLEEP_DURATION`: Delay between startup "health checks" (default to `10` seconds).
- `CN_MAX_RAM_PERCENTAGE`: Value passed to Java option `-XX:MaxRAMPercentage`.
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, `spanner`, or `hybrid`; default to `sql`).
- `CN_PERSISTENCE_TYPE`: Persistence backend being used (one of `sql`, `couchbase`, or `hybrid`; default to `sql`).
- `CN_HYBRID_MAPPING`: Specify data mapping for each persistence (default to `"{}"`). Note this environment only takes effect when `CN_PERSISTENCE_TYPE` is set to `hybrid`. See [hybrid mapping](#hybrid-mapping) section for details.
- `CN_COUCHBASE_URL`: Address of Couchbase server (default to `localhost`).
- `CN_COUCHBASE_USER`: Username of Couchbase server (default to `admin`).
Expand All @@ -62,13 +62,13 @@ The following environment variables are supported by the container:
- `CN_COUCHBASE_TRUSTSTORE_ENABLE`: Enable truststore for encrypted Couchbase connection (default to `true`).
- `CN_COUCHBASE_KEEPALIVE_INTERVAL`: Keep-alive interval for Couchbase connection (default to `30000` milliseconds).
- `CN_COUCHBASE_KEEPALIVE_TIMEOUT`: Keep-alive timeout for Couchbase connection (default to `2500` milliseconds).
- `CN_LINK_JAVA_OPTIONS`: Java options passed to entrypoint, i.e. `-Xmx1024m` (default to empty-string).
- `CN_KEYCLOAK_LINK_JAVA_OPTIONS`: Java options passed to entrypoint, i.e. `-Xmx1024m` (default to empty-string).
- `GOOGLE_APPLICATION_CREDENTIALS`: Optional JSON file (contains Google credentials) that can be injected into container for authentication. Refer to https://cloud.google.com/docs/authentication/provide-credentials-adc#how-to for supported credentials.
- `GOOGLE_PROJECT_ID`: ID of Google project.
- `CN_GOOGLE_SECRET_VERSION_ID`: Janssen secret version ID in Google Secret Manager. Defaults to `latest`, which is recommended.
- `CN_GOOGLE_SECRET_NAME_PREFIX`: Prefix for Janssen secret in Google Secret Manager. Defaults to `jans`. If left `jans-secret` secret will be created.
- `CN_GOOGLE_SECRET_MANAGER_PASSPHRASE`: Passphrase for Janssen secret in Google Secret Manager. This is recommended to be changed and defaults to `secret`.
- `CN_LINK_APP_LOGGERS`: Custom logging configuration in JSON-string format with hash type (see [Configure app loggers](#configure-app-loggers) section for details).
- `CN_CACHE_REFRESH_APP_LOGGERS`: Custom logging configuration in JSON-string format with hash type (see [Configure app loggers](#configure-app-loggers) section for details).
- `CN_PROMETHEUS_PORT`: Port used by Prometheus JMX agent (default to empty string). To enable Prometheus JMX agent, set the value to a number. See [Exposing metrics](#exposing-metrics) for details.
- `CN_SQL_DB_HOST`: Hostname of the SQL database (default to `localhost`).
- `CN_SQL_DB_PORT`: Port of the SQL database (default to `3306` for MySQL).
Expand Down Expand Up @@ -135,12 +135,12 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c

```
{
"default": "<couchbase|spanner|sql>",
"user": "<couchbase|spanner|sql>",
"site": "<couchbase|spanner|sql>",
"cache": "<couchbase|spanner|sql>",
"token": "<couchbase|spanner|sql>",
"session": "<couchbase|spanner|sql>",
"default": "<couchbase|sql>",
"user": "<couchbase|sql>",
"site": "<couchbase|sql>",
"cache": "<couchbase|sql>",
"token": "<couchbase|sql>",
"session": "<couchbase|sql>",
}
```
Expand All @@ -149,11 +149,11 @@ As per v1.0.1, hybrid persistence supports all available persistence types. To c
```
{
"default": "sql",
"user": "spanner",
"user": "sql",
"site": "sql",
"cache": "sql",
"token": "couchbase",
"session": "spanner",
"session": "sql",
}
```
Expand All @@ -166,4 +166,3 @@ i.e. `http://container:9093/metrics`.
Note that Prometheus JMX exporter uses pre-defined config file (see `conf/prometheus-config.yaml`).
To customize the config, mount custom config file to `/opt/prometheus/prometheus-config.yaml` inside the container.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Installation depends on the set of environment variables shown below. These envi
Download the compose file of your chosen persistence from mysql or postgres

```bash

wget https://raw.githubusercontent.com/JanssenProject/jans/main/docker-jans-monolith/jans-mysql-compose.yml
wget https://raw.githubusercontent.com/JanssenProject/jans/main/docker-jans-monolith/jans-postgres-compose.yml
```
Expand Down Expand Up @@ -100,7 +101,7 @@ To stop the containers.

3. Use the CLI tools located under `/opt/jans/jans-cli/` to configure Gluu flex as needed. For example you can run the [TUI](https://docs.jans.io/head/admin/config-guide/config-tools/jans-tui/):
```bash
jans tui
python3 /opt/jans/jans-cli/config-cli-tui.py
```

## Access endpoints externally
Expand Down
Loading

0 comments on commit 9e31277

Please sign in to comment.