
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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
Specify which configuration file Nginx should use instead of the default.
string
Sets the prefix path (default: /usr/local/nginx/). Any references in the config file will be relative to this path.
string
Sets global directives. Further Information can be found here.
string
Don't run, just test the configuration file. Nginx checks configuration for correct syntax and then try to open files referred in configuration.
nginx: {
options: {
config: '/home/alex/nginx.conf',
prefix: '/home/alex/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 536 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.