Untitled

 avatar
unknown
yaml
2 years ago
2.4 kB
3
Indexable
version: v0.7.1-alpha.1

dsn: memory

serve:
  public:
    base_url: http://127.0.0.1:4433/
    cors:
      enabled: true
      allowed_origins:
        - http://localhost:4455
        - http://localhost:3000
        - http://127.0.0.1:3000
      allowed_methods:
        - POST
        - GETQ
        - PUT
        - PATCH
        - DELETE
      allowed_headers:
        - Authorization
        - Cookie
        - Content-Type
      exposed_headers:
        - Content-Type
        - Set-Cookie
      allow_credentials: true
  admin:
    base_url: http://127.0.0.1:4434/

selfservice:
  default_browser_return_url: http://127.0.0.1:4455/
  allowed_return_urls:
    - http://127.0.0.1:4455

  methods:
    password:
      enabled: true
      config:
        haveibeenpwned_enabled: false
        min_password_length: 8
        identifier_similarity_check_enabled: true
    profile:
      enabled: false
    link:
      enabled: true
      config: 
        lifespan: 15m



  flows:
    error:
      ui_url: http://127.0.0.1:3000/error

    settings:
      ui_url: http://127.0.0.1:3000/dashboard/changePassword
      privileged_session_max_age: 15m

    recovery:
      enabled: true
      lifespan: 15m
      ui_url: http://127.0.0.1:3000/auth/recovery


    verification:
      enabled: true
      ui_url: http://127.0.0.1:3000/auth/verification
      after:
        default_browser_return_url: http://127.0.0.1:3000/

    logout:
      after:
        default_browser_return_url: http://127.0.0.1:3000/auth/login

    login:
      ui_url: http://127.0.0.1:3000/auth/login
      lifespan: 10m
      # after:
      #   password:
      #     hooks:
      #       - hook: require_verified_address

    registration:
      lifespan: 10m
      ui_url: http://127.0.0.1:3000/onboarding/registration
      after:
        password:
          hooks:
            -
              hook: session

log:
  level: debug
  format: text
  leak_sensitive_values: true

secrets:
  cookie:
    - XRhlCxFymN8l7/JgsYujFLoytBwVtjo1rJmxpXYO5GY=
  cipher:
    - bdWyFFJmGpih5cCvOHGhCUKbe7oDsv8f

ciphers:
  algorithm: xchacha20-poly1305

hashers:
  algorithm: bcrypt
  bcrypt:
    cost: 8

identity:
  default_schema_id: default
  schemas:
    - id: default
      url: file:///etc/config/kratos/identity.schema.json

courier:
  smtp:
    connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true

session:
  cookie:
    name: "sid"