Skip to content

Commit

Permalink
docs: add configuring introduction (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Aug 5, 2020
1 parent 9229c30 commit b8cfb35
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
@@ -1,3 +1,7 @@
version: v0.4.6-alpha.1

dsn: memory

serve:
public:
base_url: http://127.0.0.1:4455/.ory/kratos/public/
Expand Down Expand Up @@ -50,6 +54,7 @@ selfservice:

log:
level: debug
format: text

secrets:
cookie:
Expand Down
30 changes: 30 additions & 0 deletions docs/docs/configuring.md
@@ -0,0 +1,30 @@
---
id: configuring
title: Configuring
---

This document describes _how_ the service can be configured. For a documentation
on all configuration values head over to the
[configuration reference](reference/configuration.md).

## Configuration File

Files in the format of JSON, YAML and TOML are supported. When starting Kratos
you specify the path to the config file via the `--config` flag. For more
in-depth info run `kratos help`. We recommend you name your configuration file
`kratos.(json|yml|yaml|toml)`. This will enable automatic validation and code
completion in VSCode, JetBrains' IDEs and other tools that utilise
[schemastore.org](https://www.schemastore.org/json/) JSON schemas. Alternatively
you can add the schema mapping manually as well. It is recommended to prevent
leaking of secrets by setting sensitive values via environmental variables as
described in the following section.

## Environmental Variables

Environmental variables take precedence over config file values. Nested paths
get mapped to config values by putting an underscore `_` between every level,
e.g. `selfservice.flows.settings.ui_url` becomes
`SELFSERVICE_FLOWS_SETTINGS_UI_URL=<value>`.

Please note that there are some caveats when using env vars
[documented here](https://www.ory.sh/docs/ecosystem/configuring).
2 changes: 1 addition & 1 deletion docs/sidebar.js
@@ -1,6 +1,6 @@
module.exports = {
Introduction: [
"index", "quickstart", "install"
"index", "quickstart", "install", "configuring"
],
Concepts: [
"concepts/index",
Expand Down

0 comments on commit b8cfb35

Please sign in to comment.