Hey guys I am self hosting kratos with docker, cur...
# talk-kratos
h
Hey guys I am self hosting kratos with docker, currently I am trying to add several allowed return urls by environment variables, by cofiguring like this, with 01_, _2, _3 But I am not sure if I can do it with allowed return urls, if I could do several by env vars how would I. Thank you!
b
It should work like that. Are you running into issues? The keys should look like this:
SELFSERVICE_ALLOWED_RETURN_URLS_0=https://....
SELFSERVICE_ALLOWED_RETURN_URLS_1=https://....
etc.
h
ahhh it was not the return urls it is the settings page when using the return_to parameter, So when I go to the settings page and click save so I can redirect I get the error
Requested return_to URL "<http://kratos.openfoodfacts.localhost:4455/cgi/kratos_update_settings.pl>" is not allowed.
although if I do the same url in the return_to when going to the registration page it works not sure why this could be
I am hosting the kratos nodejs ui
b
Hm, that could be a bug, though I am not sure if there is different logic for the settings flows. I will check tomorrow & get back to you.
h
Also @bland-eye-99092 should the settings ui be redirecting everytime the user saves even without return_to? If I do not put a return_to url when I click save it just says "your changes have been saved", or is this only for when you have a return_to parameter?
Okay I found what was happening, I did not have the
SELFSERVICE_FLOWS_SETTINGS_AFTER_PROFILE_DEFAULT_BROWSER_RETURN_URL
env variable set but I did for the
SELFSERVICE_FLOWS_SETTINGS_AFTER_PASSWORD_DEFAULT_BROWSER_RETURN_URL
, so if you do not have that env variable set then you cannot use the return_to param