<@U04UQ68083H> When I'm using the kratos route: /s...
# ory-copilot
f
@chilly-king-10285 When I'm using the kratos route: /self-service/login/api The base url of the action url returned did not point to my Kratos where can i do the configuration in Kratos for that ?
b
A message from kapa.ai
To configure the base URL for the action URL returned by the
/self-service/login/api
route in Ory Kratos, you need to set the
serve.public.base_url
configuration option. This setting determines the base URL used for various self-service flows, including the login flow. You can configure this in your Kratos configuration file (usually named
kratos.yml
) as follows:
Copy code
yaml serve:   public:     base_url: <https://your-kratos-public-url.com/>
Replace
<https://your-kratos-public-url.com/>
with the actual public URL where your Kratos instance is accessible. Alternatively, you can set this configuration using an environment variable:
Copy code
SERVE_PUBLIC_BASE_URL=<https://your-kratos-public-url.com/>
This configuration ensures that the action URL returned in the login flow response points to your Kratos instance. For more detailed information on configuring Ory Kratos, you can refer to the [Kratos Configuration Documentation](https://www.ory.sh/docs/kratos/configuring). [Kratos Configuration](https://www.ory.sh/docs/kratos/configuring)