Any idea for customize endpoint urls?

Hi there,
I’m using Hydra with API gateway, I have redirected some of the hydra endpoints to my customized URL, I have redirected all the restful API like /oauth2/* in hydra to/api/oauth2/*, but leave /.well-known/* in /.well-known/*.

I changed the urls issuer in the config, but it changed all the endpoints as well as the jwks_uri, like this

{
"issuer": "https://user.localhost/api/",
"authorization_endpoint": "https://user.localhost/api/oauth2/auth",
"token_endpoint": "https://user.localhost/api/oauth2/token",
"jwks_uri": "https://user.localhost/api/.well-known/jwks.json",
"userinfo_endpoint": "https://user.localhost/api/third/userinfo",
"revocation_endpoint": "https://user.localhost/api/oauth2/revoke",
"end_session_endpoint": "https://user.localhost/api/oauth2/sessions/logout"
}

Instead I want,

{
"issuer": "https://user.localhost/",
"authorization_endpoint": "https://user.localhost/api/oauth2/auth",
"token_endpoint": "https://user.localhost/api/oauth2/token",
"jwks_uri": "https://user.localhost/.well-known/jwks.json",
"userinfo_endpoint": "https://user.localhost/api/third/userinfo",
"revocation_endpoint": "https://user.localhost/api/oauth2/revoke",
"end_session_endpoint": "https://user.localhost/api/oauth2/sessions/logout"
}

any idea for achieving this?

Hm, good question. I think opening an issue in Hydra with that use case would be the way to go. I think this should be implemented.