Skip to content

Instantly share code, notes, and snippets.

@mpalourdio
Last active February 3, 2025 14:43
Show Gist options
  • Save mpalourdio/1bd8e4af1a893b85168889a76858e0f1 to your computer and use it in GitHub Desktop.
Save mpalourdio/1bd8e4af1a893b85168889a76858e0f1 to your computer and use it in GitHub Desktop.
From sonatype nexus to npmjs audit
server {
listen 8080;
server_name localhost;
location ~ ^/repository/npm-group/-/npm/(.*)$ {
return 307 https://registry.npmjs.org/-/npm/$1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment