Removed bugs and implemented new server config structure

This commit is contained in:
2023-12-12 12:32:35 +01:00
parent cac9e6e1c8
commit b1e71e3875
25 changed files with 66 additions and 39 deletions

View File

@@ -3,11 +3,15 @@
pacman: name=nginx state=present
notify: restart nginx
- name: set /etc/nginx/conf.d
- name: Ensure nginx configuration directories are present
file:
path: /etc/nginx/conf.d
path: "{{ item }}"
state: directory
mode: 0755
mode: '0755'
loop:
- "{{nginx_servers_directory}}"
- "{{nginx_maps_directory}}"
- "{{nginx_upstreams_directory}}"
- name: create nginx config file
template: src=nginx.conf.j2 dest=/etc/nginx/nginx.conf

View File

@@ -31,5 +31,7 @@ http
gzip_types application/atom+xml application/javascript application/xml+rss application/x-javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy text/javascript text/xml;
types_hash_max_size 4096;
include conf.d/*.conf;
include {{nginx_upstreams_directory}}*.conf;
include {{nginx_maps_directory}}*.conf;
include {{nginx_servers_directory}}*.conf;
}