<@U042SD9F5HT> that sounds like a configuration op...
# talk-kratos
s
@echoing-postman-28418 that sounds like a configuration option https://www.ory.sh/docs/kratos/configuring https://www.ory.sh/docs/kratos/reference/configuration
e
yepp i did update the configuration with the domain
s
So it’s working now?
e
no its not, let me show you the configuration
Copy code
version: v0.11.1

serve:
  public:
    base_url: <http://iam.oiconomos.com:4433/>
    cors:
      enabled: true
      allowed_origins:
        - http://*.<http://oiconomos.com|oiconomos.com>
        - https://*.<http://oiconomos.com|oiconomos.com>
  admin:
    base_url: <http://kratos-oiconomos:4434/>

selfservice:
  default_browser_return_url: <http://iam.oiconomos.com:4455>
  allowed_return_urls:
    - <http://iam.oiconomos.com>
    - <https://iam.oiconomos.com>

  methods:
    password:
      enabled: true

  flows:
    error:
      ui_url: <http://iam.oiconomos.com:4455/error>

    settings:
      ui_url: <http://iam.oiconomos.com:4455/settings>
      privileged_session_max_age: 15m

    recovery:
      enabled: true
      ui_url: <http://iam.oiconomos.com:4455/recovery>

    verification:
      enabled: true
      ui_url: <http://iam.oiconomos.com:4455/verification>
      after:
        default_browser_return_url: <http://iam.oiconomos.com:4455/>

    logout:
      after:
        default_browser_return_url: <http://iam.oiconomos.com:4455/login>

    login:
      ui_url: <http://iam.oiconomos.com:4455/login>
      lifespan: 10m

    registration:
      lifespan: 10m
      ui_url: <http://iam.oiconomos.com:4455/registration>
      after:
        password:
          hooks:
            - hook: session

log:
  level: info
  format: text
  leak_sensitive_values: false

secrets:
  cookie:
    - 8Z59ruUowkLcK/8lQDoi/NG85xLtGLNPoXZD0OZeGQk=
  cipher:
    - HeTJnDdEbd7WXffB3wqAS5aRewy9kv1Y

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>
s
Can you please try it against the Ory Network API? That will save you the effort console.ory.sh
e
i am using in self hosted environment with docker
also i havent set any environment variables that would overwrite any values in the above config
s
What is in the env?
e
s
printenv
e
Copy code
NODE_VERSION=18.12.1
HOSTNAME=kratos-selfservice-ui-node-oiconomos
YARN_VERSION=1.22.19
SHLVL=1
HOME=/home/ory
KRATOS_PUBLIC_URL=<http://kratos-oiconomos:4433/>
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/usr/src/app
KRATOS_BROWSER_URL=<http://iam.oiconomos.com:4433/>
is there any guide available on how to using self service ui in server
s
e
i tried this it works locally, but not in the server, even when i update the configuration as mentioned above
b
did you add an after: default_browser_return_url to the login block?