mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Removed bugs and implemented new server config structure
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user