NGINX Config for VS Code
Catch the mistakes nginx -t would refuse—a directive in the wrong block, the wrong number of arguments, proxy_pass without a scheme, an unclosed brace—while editing.
Open source and maintained by Juan Torchia.
- Current release
- v0.2.0
- Marketplace downloads
- 94 Observed Dec 3, 2026
- Compatibility
- VS Code 1.110+ and Open VSX editors
- License
- MIT
See it in the editor






A focused tool for a specific workflow
NGINX configuration validation, context-aware completion, hover documentation from nginx.org, safe formatting, and TLS and certificate checks inside VS Code.
- A language server with a catalog of all 841 directives of nginx and its official modules, generated from nginx.org with syntax, default, context, and module
- Diagnostics for unknown directives, directives outside their allowed block, wrong argument counts, proxy_pass without a scheme, unclosed blocks, and missing semicolons
- Context-aware completion for http, server, location, upstream, stream, mail, and other blocks, and hover documentation from nginx.org
- A formatter that only re-indents and trims trailing whitespace: it never joins, splits, adds, or removes lines
- Follow include directives and jump from proxy_pass and other *_pass directives to the matching upstream block
- TLS lint against the Mozilla Server Side TLS guidelines, certificate details for referenced files, and an Open in CertView CodeLens
From install to a safer decision
- Install the extension and open nginx.conf, a file under sites-available, sites-enabled, or conf.d, or any file set to the NGINX language.
- Review inline diagnostics and use context-aware completion, hover documentation, and Go to Definition for includes and upstreams while editing.
- Check TLS and certificate findings for ssl_* directives, and open referenced certificates in CertView when it is installed.
- Run nginx -t and your deployment validation before reloading the server.
How the pieces fit together
This is a textual architecture map grounded in the public implementation. Follow the source link to inspect the exact modules, tests, and release history.
The VS Code client activates for NGINX configuration files and owns editor commands, settings, and the Open in CertView CodeLens.
The client exchanges Language Server Protocol messages with a bundled language server that parses the document and resolves include and upstream references across the workspace.
The server checks directives against the generated nginx.org catalog and a Mozilla TLS catalog pinned to guideline 6.0, and reads referenced certificate and key files with Node's built-in crypto.
Supported scope
- nginx.conf, nginx*.conf, *.nginx, and *.nginxconf
- Files under sites-available, sites-enabled, conf.d, or an nginx folder, recognized as include fragments
- fastcgi_params, scgi_params, uwsgi_params, and proxy_params
- Certificates and keys referenced by ssl_certificate and related directives
Explicit boundaries
- Diagnostics are editor feedback, not a substitute for running nginx -t against the target build and modules before reload or deployment.
- The extension has no telemetry and no network access. Certificate and key files outside the workspace are read only after opting in, and private key content is never shown or sent anywhere.
- When filing public issues, use a minimal sanitized configuration and remove hosts, addresses, credentials, certificates, and other production details.
Get help, verify changes, or contribute
Issues and release history stay with the source repository so the evidence remains public.
Need this kind of workflow inside your team?
Start with a bounded workflow review. Product support stays in public issues; organization-specific discovery and implementation follow a private path.