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;
|
- inventory: all inventory related files are stored here;
|
||||||
- playbooks: top level playbooks, describe the way the infrastructure is laid out;
|
- playbooks: top level playbooks, describe the way the infrastructure is laid out;
|
||||||
- scripts: various scripts and helpers;
|
- 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 }}'
|
group: '{{ nginx_service_group }}'
|
||||||
mode: '0750'
|
mode: '0750'
|
||||||
loop:
|
loop:
|
||||||
|
- conf.d
|
||||||
- ssl
|
- ssl
|
||||||
- ssl/certificates
|
- ssl/certificates
|
||||||
- ssl/keys
|
- ssl/keys
|
||||||
|
@ -16,6 +17,12 @@
|
||||||
- streams-available
|
- streams-available
|
||||||
- streams-enabled
|
- 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
|
- name: generate dhparams.pem file
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|
|
@ -8,6 +8,8 @@ events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/*.conf;
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
Loading…
Add table
Reference in a new issue