Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
grunt-nginx
Advanced tools
Grunt task for Nginx to start, stop and restart a server.
Install the plugin with this command:
npm install grunt-nginx --save-dev
Then add this line to your project's Gruntfile.js
gruntfile:
grunt.loadNpmTasks('grunt-nginx');
Inside your Gruntfile.js
file add a section called nginx
. This section specifies the nginx
task and any options you want to pass to it.
grunt-nginx uses colon-separated arguments for the nginx
tasks:
These are all self-explanatory.
string
- requiredSpecify which configuration file Nginx should use instead of the default.
string
- optionalSets the prefix path (default: /usr/local/nginx/). Any references in the config file will be relative to this path.
string
- optionalSets global directives. Further Information can be found here.
string
- optionalDon't run, just test the configuration file. Nginx checks configuration for correct syntax and then try to open files referred in configuration.
boolean
- optionalRuns nginx with sudo. Useful if you want to run it on port 80.
grunt-nginx supports both absolute and relative paths. Like most grunt plugins, relative paths are with respect to the Gruntfile.js
gruntfile.
nginx: {
options: {
config: '/path/to/nginx.conf',
prefix: './relative/path/nginx'
globals: ['pid /var/run/nginx.pid', 'worker_processes 2']
}
}
grunt.registerTask("default", "nginx:start");
FAQs
Grunt task for Nginx to start, stop and restart a server.
The npm package grunt-nginx receives a total of 756 weekly downloads. As such, grunt-nginx popularity was classified as not popular.
We found that grunt-nginx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.