github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/configx/stub/kratos/expected.json (about)

     1  {
     2    "courier": {
     3      "smtp": {
     4        "connection_uri": "smtps://test:test@mailslurper:1025/?skip_ssl_verify=true",
     5        "from_address": "no-reply@ory.kratos.sh"
     6      }
     7    },
     8    "dsn": "sqlite:///var/lib/sqlite/db.sqlite?_fk=true",
     9    "hashers": {
    10      "argon2": {
    11        "iterations": 2,
    12        "key_length": 16,
    13        "memory": 131072,
    14        "parallelism": 1,
    15        "salt_length": 16
    16      }
    17    },
    18    "identity": {
    19      "default_schema_url": "file:///etc/config/kratos/identity.schema.json"
    20    },
    21    "log": {
    22      "format": "text",
    23      "leak_sensitive_values": true,
    24      "level": "debug"
    25    },
    26    "secrets": {
    27      "cookie": [
    28        "PLEASE-CHANGE-ME-I-AM-VERY-INSECURE"
    29      ]
    30    },
    31    "selfservice": {
    32      "default_browser_return_url": "http://127.0.0.1:4455/",
    33      "flows": {
    34        "error": {
    35          "ui_url": "http://127.0.0.1:4455/error"
    36        },
    37        "login": {
    38          "lifespan": "10m",
    39          "ui_url": "http://127.0.0.1:4455/auth/login"
    40        },
    41        "logout": {
    42          "after": {
    43            "default_browser_return_url": "http://127.0.0.1:4455/auth/login"
    44          }
    45        },
    46        "recovery": {
    47          "enabled": true,
    48          "lifespan": "1h",
    49          "ui_url": "http://127.0.0.1:4455/recovery"
    50        },
    51        "registration": {
    52          "after": {
    53            "password": {
    54              "hooks": [
    55                {
    56                  "hook": "session"
    57                }
    58              ]
    59            }
    60          },
    61          "lifespan": "10m",
    62          "ui_url": "http://127.0.0.1:4455/auth/registration"
    63        },
    64        "settings": {
    65          "lifespan": "1h",
    66          "privileged_session_max_age": "15m",
    67          "ui_url": "http://127.0.0.1:4455/settings"
    68        },
    69        "verification": {
    70          "after": {
    71            "default_browser_return_url": "http://127.0.0.1:4455/"
    72          },
    73          "enabled": true,
    74          "lifespan": "1h",
    75          "ui_url": "http://127.0.0.1:4455/verify"
    76        }
    77      },
    78      "methods": {
    79        "link": {
    80          "enabled": true
    81        },
    82        "oidc": {
    83          "enabled": true,
    84          "config": {
    85            "providers": [
    86              {
    87                "id": "google",
    88                "provider": "google",
    89                "mapper_url": "file:///etc/config/kratos/oidc.google.jsonnet",
    90                "client_id": "client@example.com",
    91                "client_secret": "secret"
    92              }
    93            ]
    94          }
    95        },
    96        "password": {
    97          "enabled": true
    98        },
    99        "profile": {
   100          "enabled": true
   101        }
   102      },
   103      "whitelisted_return_urls": [
   104        "http://127.0.0.1:4455"
   105      ]
   106    },
   107    "serve": {
   108      "admin": {
   109        "base_url": "http://kratos:4434/",
   110        "host": "0.0.0.0",
   111        "port": 4434
   112      },
   113      "public": {
   114        "base_url": "http://127.0.0.1:4433/",
   115        "cors": {
   116          "allow_credentials": true,
   117          "allowed_headers": [
   118            "Authorization",
   119            "Content-Type",
   120            "X-Session-Token"
   121          ],
   122          "allowed_methods": [
   123            "POST",
   124            "GET",
   125            "PUT",
   126            "PATCH",
   127            "DELETE"
   128          ],
   129          "allowed_origins": [
   130            "*"
   131          ],
   132          "debug": false,
   133          "enabled": true,
   134          "exposed_headers": [
   135            "Content-Type"
   136          ],
   137          "max_age": 0,
   138          "options_passthrough": false
   139        },
   140        "host": "0.0.0.0",
   141        "port": 4433
   142      }
   143    },
   144    "session": {
   145      "cookie": {
   146        "path": "/",
   147        "persistent": true,
   148        "same_site": "Lax"
   149      },
   150      "lifespan": "24h"
   151    },
   152    "version": "v0.5.3-alpha.1"
   153  }