Configuration file location
Nuclei’s configuration file is located at:-update-templates flag or when you modify any configuration settings.
Configuration file format
The configuration file uses YAML format. Here’s a complete example with all available options:Configuration options
Template directories
Path to the main Nuclei templates directory. Defaults to
~/.config/nuclei-templates/.Path to custom templates stored in AWS S3.
Path to custom templates from GitHub repositories.
Path to custom templates from GitLab repositories.
Path to custom templates stored in Azure Blob Storage.
Version tracking
Currently installed version of Nuclei templates. Automatically updated when templates are installed or updated.
Hash of the
.nuclei-ignore file. Used to detect when the ignore file has been updated.Latest available version of Nuclei (cached from version check).
Latest available version of Nuclei templates (cached from version check).
Creating a custom configuration
Using custom template directories
You can configure multiple custom template directories for different sources:Custom template directories are relative to the main templates directory unless you specify an absolute path.
Disabling automatic updates
Use the-duc (disable-update-check) flag to prevent Nuclei from checking for updates:
Configuration file precedence
Configuration values are applied in this order (later values override earlier ones):- Default values from
pkg/catalog/config/nucleiconfig.go - Configuration file (
~/.config/nuclei/config.yaml) - Environment variables
- Command-line flags
Template ignore file
Nuclei also uses a.nuclei-ignore file in the templates directory to exclude specific templates from execution:
Resetting configuration
To reset Nuclei configuration and templates to defaults:Troubleshooting
Configuration file not found
Configuration file not found
Nuclei creates the configuration file automatically. If it’s missing:
- Run
nuclei -update-templatesto initialize configuration - Manually create
~/.config/nuclei/config.yaml - Check file permissions on the
.configdirectory
Templates not loading from custom directory
Templates not loading from custom directory
Ensure:
- The directory path is absolute or correctly relative
- The directory contains valid
.yamltemplate files - File permissions allow Nuclei to read the directory
- Use
-vflag to see which templates are being loaded
Configuration changes not taking effect
Configuration changes not taking effect
Remember:
- Command-line flags override configuration file settings
- Environment variables override configuration file settings
- Restart any long-running Nuclei processes after config changes
- Check for YAML syntax errors in the config file
Next steps
Environment variables
Configure Nuclei using environment variables
Template selection
Learn how to select and filter templates