dshoreman / servidor

A modern web application for managing servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nginx configs aren't detected by CodeMirror

dshoreman opened this issue · comments

If you open an nginx site config in the file viewer, it's detected as plain text despite the .conf extension. CodeMirror supports an nginx mode, but it's annoying to select it every time.

If there's no built-in way to autodetect these files, one option might be to detect any *.conf file within /etc/nginx/ or it's subdirectories (eg sites-available). When there's a match we can set the mode dynamically while the file's being loaded.

ezoic increase your site revenue