Verified Commit 2b1ba2f3 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

nginx: Add toplevel-snippets mechanism

This allows you to add snippets for toplevel nginx configuration directives that can't go into the http level.
Use this for loading modules and such.
parent 9c561f8a
......@@ -11,8 +11,11 @@
notify:
- restart nginx
- name: snippets directory
file: state=directory path=/etc/nginx/snippets owner=root group=root mode=0755
- name: snippets directories
file: state=directory path=/etc/nginx/{{ item }} owner=root group=root mode=0755
with_items:
- toplevel-snippets
- snippets
- name: copy snippets
template: src={{ item }} dest=/etc/nginx/snippets owner=root group=root mode=0644
......
......@@ -2,6 +2,7 @@ worker_processes auto;
load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;
load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so;
include toplevel-snippets/*.conf;
events {
worker_connections 2048;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment