Nginx module snippet inclusion

SYSTEM INFORMATION
OS type and version Debian 13
Webmin version 2.670

Hello,

just an information
is the snippet inclusion functionality available ?
as per best practice I collect all the SSL settings or FastCGI or … in snippet files and then include them, but it seems the settings included are not visible or manageable inside the module.

Thanks,
Bye

There is currently no support for Snippets. Webmin edits config files directly, including the nginx config file. Included files are, um, included. But, Snippets are new-fangled, and didn’t exist when the nginx support was being added. And, I’m not actually sure how to make it fit, I’m not familiar with them. Snippets seem to generate configuration files, right? So, that makes things really tricky. What’s the source of truth?

I was thinking something like:

to add a global snippets section where snippets can be edited


and to add a snippet section in each server block which contains the list of snippets included in that server block

do you think would it be meaningful ?

Thanks,
Bye

alternatively I was thinking if is it possible to add two sections in the global config:
SSL Configuration and FastCGI Options


and make all the server blocks inherit the global settings or overwrite some of them
like for Server-Side Include Settings

Thanks,
Bye