URI paths in substituters and hashed-mirrors

My question is similar to Using NixOS in an isolated environment but my environment is not isolated, rather I want to leverage the existing infrastructure which is based on JFrog Artifactory. The issue is both settings (substituters and hashed-mirrors) seem to expect host names only, not full URLs. I’d like to be able to say something like

substituters=https://artifactory.mynet.com/api/mylib/nix/cache
hashed-mirrors=https://artifactory.mynet.com/api/mylib/nix/tarballs

Is that possible?