feat(nginx): change default configuration setup
This commit is contained in:
parent
35d72db683
commit
87084c1d97
3 changed files with 9 additions and 3 deletions
|
@ -129,6 +129,3 @@ Global variables are defined in `inventory/group_vars/all/vars.yml` and are used
|
|||
- inventory: all inventory related files are stored here;
|
||||
- playbooks: top level playbooks, describe the way the infrastructure is laid out;
|
||||
- scripts: various scripts and helpers;
|
||||
|
||||
# TODO / Issues
|
||||
- gpg setup for HC Vault should be done with current user or root only, not mixed
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
group: '{{ nginx_service_group }}'
|
||||
mode: '0750'
|
||||
loop:
|
||||
- conf.d
|
||||
- ssl
|
||||
- ssl/certificates
|
||||
- ssl/keys
|
||||
|
@ -16,6 +17,12 @@
|
|||
- streams-available
|
||||
- streams-enabled
|
||||
|
||||
- name: remove default unneeded files
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: '/etc/nginx/conf.d/default.conf'
|
||||
state: absent
|
||||
|
||||
- name: generate dhparams.pem file
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
|
|
|
@ -8,6 +8,8 @@ events {
|
|||
worker_connections 1024;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
|
Loading…
Add table
Reference in a new issue