What’s the nuget package repo link for GH Enterprise

We’ve got GitHub Enterprise 3.0.1, and our admin turned on the nuget package support, however I cannot figure out the url to upload packages to. I tried https://nuget.pkg.ourgithub.mycompany.com/mylogin/myrepo/index.json, but curl kept complaining that it can’t resolve the domain name. I have the feeling that our proxy is not configured to accept sub domains, but at the same time the official docs don’t show what exact path should I use in an on premise github server for Packages, so I also suspect I’m using the wrong url.

Hi @e-master,

I have the feeling that our proxy is not configured to accept sub domains, but at the same time the official docs don’t show what exact path should I use in an on premise github server for Packages, so I also suspect I’m using the wrong url.

If your instance has subdomain isolation disabled, you should be able to use the following url:

https://HOSTNAME/_registry/nuget/OWNER/index.json

See here for more information.

I hope that helps!

1 Like

It doesn’t work for me. when I replace hostname with my GH Enterprise URL and OWNER with my organization name or username, it didn’t find index.json. Is there any configuration on GH Enterprise missing? Are the Packages registry are enabled on the Managment Console.

@douglasrdc,

Can I check that your server has subdomain isolation disabled? If it doesn’t, the feed URL would look like this https://nuget.HOSTNAME/OWNER/index.json.

1 Like

Hi @jcansdale , Thank you for your help. I got it working now. have to set up a subdomain like you said: https://nuget.mydomain/organization/index.json and set up SSL on this URL. Now it is working fine.