feat(nginx): change default configuration setup

This commit is contained in:
NaeiKinDus 2025-01-30 00:00:00 +00:00
parent 35d72db683
commit 87084c1d97
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
3 changed files with 9 additions and 3 deletions

View file

@ -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

View file

@ -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:

View file

@ -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;