I have a Postgres on a server which is available under https://somethig.my.domain/postgres on port 5432.
I'm trying to connect via DataGrip which uses a JDBC driver. But I cannot figure out the connection string.
Official docs doesn't have an example with a subpath:
- jdbc:postgresql:database
- jdbc:postgresql:/
- jdbc:postgresql://host/database
- jdbc:postgresql://host/
- jdbc:postgresql://host:port/database
- jdbc:postgresql://host:port/
And I cannot find a way for a subpath there.
Please note that at least 2 different ORMs for Node.js connect to the Postgres without any issue, so it's definitely possible. The question is how to form JDBC connection string. Nope, I'm just connecting to Docker containers here instead of reverse-proxied Postgres under a subpath. Please ignore.

/./postgres. There are no "subpaths" in DNS./postgrespart of the URL. E.g. if a server is set up as a reverse proxy caddyserver.com/docs/caddyfile/patterns#reverse-proxy.