nginx-mode
nginx-mode copied to clipboard
Emacs editing mode for Nginx config files
Please consider upgrading the license to GPLv3. Reasons why: https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg01069.html https://www.gnu.org/licenses/rms-why-gplv3.html The main file of this project says: ``` ;; This program is free software; you can redistribute it and/or...
In OpenRestry, a dynamic web platform based on NGINX and LuaJIT, there are something different from origin NGINX. [example](https://github.com/openresty/lua-resty-upload#synopsis) Hoping you could add support for it.
Given the config: ``` #mail { # # pop3_capabilities "TOP" "USER"; # # imap_capabilities "IMAP4rev1" "UIDPLUS"; #} ``` The second and third lines are not highlighted as comments.
...as per the example at http://wiki.nginx.org/FullExample (see where `log_format` is used).
Specifically this fixes an indentation issue with this: if ($host = example.com) { return 301 https://$host$request_uri; } # managed by Certbot Before this change this would have been indented as:...
The ‘nginx-indent-block’ function would get confused by braces in comments. Here is an example of how indentation could go wrong: server { # some comment with { # ... }...