Override default nginx.conf file
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
2b150dc971
commit
a89bf0f572
@ -13,3 +13,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
---
|
---
|
||||||
nginx_config_include_files: []
|
nginx_config_include_files: []
|
||||||
|
|
||||||
|
nginx_file_nginx_conf: etc/nginx/nginx.conf
|
||||||
|
nginx_file_nginx_conf_dest: /etc/nginx/nginx.conf
|
||||||
|
30
files/etc/nginx/nginx.conf
Normal file
30
files/etc/nginx/nginx.conf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
user nginx;
|
||||||
|
worker_processes auto;
|
||||||
|
error_log /var/log/nginx/error.log;
|
||||||
|
pid /run/nginx.pid;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
tcp_nopush on;
|
||||||
|
tcp_nodelay on;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
types_hash_max_size 2048;
|
||||||
|
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
||||||
|
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
||||||
|
# for more information.
|
||||||
|
include /etc/nginx/conf.d/*.conf;
|
||||||
|
}
|
@ -20,3 +20,9 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart nginx
|
- Restart nginx
|
||||||
- Validate nginx
|
- Validate nginx
|
||||||
|
|
||||||
|
- name: Copy nginx configuration file.
|
||||||
|
copy:
|
||||||
|
dest: "{{ nginx_file_nginx_conf_dest }}"
|
||||||
|
src: "{{ nginx_file_nginx_conf }}"
|
||||||
|
notify: Restart nginx
|
||||||
|
Loading…
Reference in New Issue
Block a user