Proper Activate Package Registry for Nuget

Hello everyone,

I’ve been using GitLab for years, hosted on my Synology NAS in a Docker container. The configuration file (gitlab.config.rb) seems correct to me, but at this point, I’m not entirely sure anymore.

Recently, I decided to set up a project specifically for hosting NuGet packages. However, I’ve run into a persistent issue: I can’t seem to get my .gitlab-ci.yml pipeline to successfully publish a NuGet package to this project.

Currently, I’m encountering this error:

Response status code does not indicate success: 401 (Unauthorized).

Although this is some progress compared to where I started, I’m still stuck.

One thing that raises suspicion is that when I go to the Tool.Nugets project to create an access token, the scope option for the Package Registry isn’t even available. However, everything else suggests that the Package Registry is enabled. This discrepancy leaves me puzzled about what might be wrong.

Here are some details about my setup:

  • GitLab version: 15.11.13
  • Hosting environment: Synology NAS with Docker, using a reverse proxy setup with ports managed via the NAS and a Fritzbox. The external URL is https://myhome.synology.me:10000/.
  • I want to use this project as a central NuGet registry for multiple repositories within the same GitLab group.

I’d really appreciate it if someone could guide me through resolving this nightmare. :blush: