Browse Source

nginx settings

master
parent
commit
f44ea9ebdc
3 changed files with 4 additions and 1 deletions
  1. +2
    -0
      defaults/main.yml
  2. +0
    -1
      tasks/setup_Debian.yml
  3. +2
    -0
      templates/nginx.conf.j2

+ 2
- 0
defaults/main.yml View File

@@ -3,3 +3,5 @@ nginx_worker_connections: 768
nginx_redirect_to_https: false nginx_redirect_to_https: false


nginx_vhosts: [] nginx_vhosts: []

nginx_set_server_names_hash_bucket_size: true

+ 0
- 1
tasks/setup_Debian.yml View File

@@ -4,7 +4,6 @@
apt: apt:
pkg: pkg:
- nginx - nginx
- nginx-light
- ssl-cert - ssl-cert


- name: remove default page - name: remove default page


+ 2
- 0
templates/nginx.conf.j2 View File

@@ -20,7 +20,9 @@ http {
types_hash_max_size 2048; types_hash_max_size 2048;
server_tokens off; server_tokens off;


{% if nginx_set_server_names_hash_bucket_size %}
server_names_hash_bucket_size 128; server_names_hash_bucket_size 128;
{% endif %}
# server_name_in_redirect off; # server_name_in_redirect off;


include /etc/nginx/mime.types; include /etc/nginx/mime.types;


Loading…
Cancel
Save