1
0
forked from baron/baron-sso

go 버전업 && ory 설정파일들 자동 생성 스크립트 추가

This commit is contained in:
2026-05-07 11:01:25 +09:00
parent 45a14163bf
commit 2cba9c9c1f
25 changed files with 504 additions and 144 deletions

View File

@@ -1,20 +1,17 @@
version: v26.2.0
dsn: ${DSN}
dsn: ${KRATOS_DSN}
serve:
public:
base_url: ${KRATOS_BROWSER_URL}
base_url: http://localhost:4433/
cors:
enabled: true
allowed_origins:
- http://backend:{{BACKEND_PORT}}
- ${USERFRONT_URL}
- ${ADMINFRONT_URL}
- ${DEVFRONT_URL}
- ${ORGFRONT_URL}
- http://localhost:{{USERFRONT_PORT}}
admin:
base_url: ${KRATOS_ADMIN_URL}
base_url: http://localhost:4434/
session:
cookie:
@@ -23,22 +20,17 @@ session:
path: /
selfservice:
default_browser_return_url: ${KRATOS_UI_URL}
default_browser_return_url: http://localhost:{{USERFRONT_PORT}}/
allowed_return_urls:
- ${KRATOS_UI_URL}
- ${KRATOS_UI_URL}/
- ${USERFRONT_URL}
- ${USERFRONT_URL}/
- ${USERFRONT_URL}/ko
- ${USERFRONT_URL}/ko/
- ${USERFRONT_URL}/en
- ${USERFRONT_URL}/en/
- ${USERFRONT_URL}/auth/callback
- ${USERFRONT_URL}/ko/auth/callback
- ${USERFRONT_URL}/en/auth/callback
- ${ADMINFRONT_URL}/auth/callback
- ${DEVFRONT_URL}/auth/callback
- ${ORGFRONT_URL}/auth/callback
- http://localhost:{{USERFRONT_PORT}}
- http://localhost:{{USERFRONT_PORT}}/
- http://localhost:{{USERFRONT_PORT}}/ko
- http://localhost:{{USERFRONT_PORT}}/ko/
- http://localhost:{{USERFRONT_PORT}}/en
- http://localhost:{{USERFRONT_PORT}}/en/
- http://localhost:{{USERFRONT_PORT}}/auth/callback
- http://localhost:{{USERFRONT_PORT}}/ko/auth/callback
- http://localhost:{{USERFRONT_PORT}}/en/auth/callback
methods:
password:
@@ -51,24 +43,24 @@ selfservice:
flows:
error:
ui_url: ${KRATOS_UI_URL}/error
ui_url: http://localhost:{{USERFRONT_PORT}}/error
settings:
ui_url: ${KRATOS_UI_URL}/error?error=settings_disabled
ui_url: http://localhost:{{USERFRONT_PORT}}/error?error=settings_disabled
privileged_session_max_age: 15m
recovery:
ui_url: ${KRATOS_UI_URL}/recovery
ui_url: http://localhost:{{USERFRONT_PORT}}/recovery
use: code
verification:
ui_url: ${KRATOS_UI_URL}/verification
ui_url: http://localhost:{{USERFRONT_PORT}}/verification
use: code
logout:
after:
default_browser_return_url: ${KRATOS_UI_URL}/login
default_browser_return_url: http://localhost:{{USERFRONT_PORT}}/login
login:
ui_url: ${KRATOS_UI_URL}/login
ui_url: http://localhost:{{USERFRONT_PORT}}/login
lifespan: 10m
registration:
ui_url: ${KRATOS_UI_URL}/registration
ui_url: http://localhost:{{USERFRONT_PORT}}/registration
lifespan: 10m
log: