Hi guys, Need help here for kratos self-service, I...
# talk-kratos
i
Hi guys, Need help here for kratos self-service, I'm new in kratos. I'm deploying kratos and self-service-ui on top of openshift. I'm sure i able to access to selfservice-ui welcome page, but when i try to access other pages (e.g. login, registration, and verification) it always return 404. Here my kratos.yaml :
Copy code
kratos.yaml: |
    courier:
      smtp: {}
    identity:
      default_schema_url: file:///etc/config/identity.schema.json
    selfservice:
      default_browser_return_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com>
      flows:
        error:
          ui_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/error>
        login:
          lifespan: 10m
          ui_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/login>
        logout:
          after:
            default_browser_return_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/login>
        recovery:
          enabled: true
          ui_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/recovery>
        registration:
          after:
            password:
              hooks:
              - hook: session
          lifespan: 10m
          ui_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/registration>
        settings:
          privileged_session_max_age: 15m
          ui_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/settings>
        verification:
          after:
            default_browser_return_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com>
          enabled: true
          ui_url: <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com/verification>
      methods:
        password:
          enabled: true
      whitelisted_return_urls:
      - <https://selfservice-ui-https-test.apps.cluster-1b04.sandbox1459.opentlc.com>
    serve:
      admin:
        port: 4434
      public:
        port: 4433
I also attach the envvars for selfservice-ui-node. Am I missing something in configuration or is there any missconfig on my configuration? Thankyou guys in advance!
j
KRATOS_BROWSER_URL
should be what you configured
KRATOS_PUBLIC_URL
to.
KRATOS_PUBLIC_URL
can be an internal DNS name for API calls, but for a proof-of-concept you can leave both to point to public kratos.
i
thanks for the insight @jolly-jelly-9637, will try it first