Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx HTTP server boilerplate configs #103

Open
thiagotalma opened this issue Feb 15, 2016 · 1 comment
Open

Nginx HTTP server boilerplate configs #103

thiagotalma opened this issue Feb 15, 2016 · 1 comment

Comments

@thiagotalma
Copy link
Contributor

Hello @drybjed

When you have the time, take a look at this project: https://github.com/h5bp/server-configs-nginx

What do you think the role debops.nginx be based (usign your snippets) in this excellent project?

Cheers!

@drybjed
Copy link
Member

drybjed commented Feb 15, 2016

@thiagotalma It's a very nice collection, however all of these files are basically static. Ansible templates offer you dynamic generation of config files with includes, variables, if/then/else statements, loops, etc. Of course some of the common configuration sections could be moved to a shared configuration snippet in /etc/nginx/snippets/ directory which is then included in the finished server config file (for example ACME support is done that way), but I don't think that many parts of the server configuration could be like that. For example, each server usually has its own set of SSL certificates, moving that to a shared, included snippet would break that functionality.

The configs you linked could be used to add some useful configuration in debops.nginx templates, but I don't see the role switching to them completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants