snapshot of https://github.com/ory/kratos.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
This commit is contained in:
17
contrib/quickstart/kratos/cloud/Caddyfile
Normal file
17
contrib/quickstart/kratos/cloud/Caddyfile
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
http_port 4455
|
||||
auto_https off
|
||||
|
||||
}
|
||||
|
||||
:4455 {
|
||||
route /ui/* {
|
||||
uri strip_prefix /ui
|
||||
reverse_proxy kratos-selfservice-ui-node:4438 {
|
||||
header_up Host {http.request.hostport}
|
||||
}
|
||||
}
|
||||
reverse_proxy /* kratos:4433 {
|
||||
header_up Host {http.request.hostport}
|
||||
}
|
||||
}
|
||||
49
contrib/quickstart/kratos/cloud/identity.schema.json
Normal file
49
contrib/quickstart/kratos/cloud/identity.schema.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Person",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"traits": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"title": "E-Mail",
|
||||
"minLength": 3,
|
||||
"ory.sh/kratos": {
|
||||
"credentials": {
|
||||
"password": {
|
||||
"identifier": true
|
||||
}
|
||||
},
|
||||
"verification": {
|
||||
"via": "email"
|
||||
},
|
||||
"recovery": {
|
||||
"via": "email"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"first": {
|
||||
"title": "First Name",
|
||||
"type": "string"
|
||||
},
|
||||
"last": {
|
||||
"title": "Last Name",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"email"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
76
contrib/quickstart/kratos/cloud/kratos.yml
Normal file
76
contrib/quickstart/kratos/cloud/kratos.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
version: v0.13.0
|
||||
|
||||
dsn: memory
|
||||
|
||||
serve:
|
||||
public:
|
||||
base_url: http://localhost:4455/
|
||||
cors:
|
||||
enabled: true
|
||||
admin:
|
||||
base_url: http://kratos:4434/
|
||||
|
||||
selfservice:
|
||||
default_browser_return_url: http://localhost:4455/ui/welcome
|
||||
allowed_return_urls:
|
||||
- http://localhost:4455
|
||||
|
||||
methods:
|
||||
password:
|
||||
enabled: true
|
||||
|
||||
flows:
|
||||
error:
|
||||
ui_url: http://localhost:4455/ui/error
|
||||
|
||||
settings:
|
||||
ui_url: http://localhost:4455/ui/settings
|
||||
privileged_session_max_age: 15m
|
||||
|
||||
recovery:
|
||||
enabled: true
|
||||
ui_url: http://localhost:4455/ui/recovery
|
||||
|
||||
verification:
|
||||
enabled: true
|
||||
ui_url: http://localhost:4455/ui/verification
|
||||
after:
|
||||
default_browser_return_url: http://localhost:4455/ui/welcome
|
||||
|
||||
logout:
|
||||
after:
|
||||
default_browser_return_url: http://localhost:4455/ui/login
|
||||
|
||||
login:
|
||||
ui_url: http://localhost:4455/ui/login
|
||||
|
||||
registration:
|
||||
ui_url: http://localhost:4455/ui/registration
|
||||
after:
|
||||
password:
|
||||
hooks:
|
||||
-
|
||||
hook: session
|
||||
|
||||
log:
|
||||
level: info
|
||||
format: text
|
||||
|
||||
secrets:
|
||||
cookie:
|
||||
- PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
|
||||
|
||||
hashers:
|
||||
algorithm: bcrypt
|
||||
bcrypt:
|
||||
cost: 8
|
||||
|
||||
identity:
|
||||
default_schema_id: preset://email
|
||||
schemas:
|
||||
- id: preset://email
|
||||
url: file:///etc/config/kratos/identity.schema.json
|
||||
|
||||
courier:
|
||||
smtp:
|
||||
connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true
|
||||
42
contrib/quickstart/kratos/cloud/quickstart.yml
Normal file
42
contrib/quickstart/kratos/cloud/quickstart.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
kratos:
|
||||
volumes:
|
||||
- type: volume
|
||||
source: kratos-sqlite
|
||||
target: /var/lib/sqlite
|
||||
read_only: false
|
||||
- type: bind
|
||||
source: ./contrib/quickstart/kratos/cloud
|
||||
target: /etc/config/kratos
|
||||
kratos-migrate:
|
||||
volumes:
|
||||
- type: volume
|
||||
source: kratos-sqlite
|
||||
target: /var/lib/sqlite
|
||||
read_only: false
|
||||
- type: bind
|
||||
source: ./contrib/quickstart/kratos/cloud
|
||||
target: /etc/config/kratos
|
||||
|
||||
kratos-selfservice-ui-node:
|
||||
ports:
|
||||
- "4438:4438"
|
||||
environment:
|
||||
- PORT=4438
|
||||
- KRATOS_BROWSER_URL=http://localhost:4455/
|
||||
|
||||
kratos-caddy:
|
||||
image: caddy:2.4.5-alpine
|
||||
ports:
|
||||
- "4455:4455"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./contrib/quickstart/kratos/cloud/Caddyfile
|
||||
target: /etc/caddy/Caddyfile
|
||||
command: caddy run -watch -config /etc/caddy/Caddyfile
|
||||
restart: on-failure
|
||||
networks:
|
||||
- intranet
|
||||
|
||||
Reference in New Issue
Block a user