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

Offer a template for nginx config files #4654

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
16 changes: 16 additions & 0 deletions roles/nginxplus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ nginx_main_upload_enable: false
# Upload HTTP NGINX configuration files.
# Set to false for testing
nginx_http_upload_enable: false
nginx_http_upload_src: conf/http/*.conf
nginx_http_upload_dest: /etc/nginx/conf.d/static
nginx_http_dynamic_config_dest: /etc/nginx/conf.d/dynamic
# Upload Stream NGINX configuration files.
nginx_stream_upload_enable: false
nginx_stream_upload_src: conf/stream/*.conf
nginx_stream_upload_dest: /etc/nginx/conf.d/
# Upload HTML files.
# Set to false for testing
nginx_html_upload_enable: false
Expand Down Expand Up @@ -431,3 +438,12 @@ nginx_stream_template:
port: 8080
weight: 1
health_check: max_fails=1 fail_timeout=10s

# manage the hash table that stores server names for fast lookup
# increase the size first, when that stops working, increase the number of hash buckets in the table
nginx_server_names_hash_bucket_size: 64
nginx_server_names_hash_max_size: 1024
client_max_body_size: 0

# define the directory where we copy config before deploying changes, for rollback
config_backup_dir: /tmp/nginx_backup
57 changes: 0 additions & 57 deletions roles/nginxplus/files/conf/http/abid_staging.conf

This file was deleted.

54 changes: 0 additions & 54 deletions roles/nginxplus/files/conf/http/allsearch-api_prod.conf

This file was deleted.

60 changes: 0 additions & 60 deletions roles/nginxplus/files/conf/http/allsearch-api_staging.conf

This file was deleted.

7 changes: 0 additions & 7 deletions roles/nginxplus/tasks/conf/cleanup-config.yml

This file was deleted.

Loading
Loading