Skip to content

Commit

Permalink
include static files from a subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
acozine committed Oct 2, 2023
1 parent 4abc977 commit ed149a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/nginxplus/tasks/conf/upload-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
mode: 0755
when: nginx_template_upload_enable

- name: Setup | Upload NGINX HTTP Configuration Files
- name: Setup | Upload NGINX HTTP Static Config Files
copy:
src: "{{ item }}"
dest: "{{ nginx_http_upload_dest }}"
dest: "{{ nginx_http_upload_dest }}static/"
mode: 0755
state: directory
loop: "{{ nginx_http_upload_src }}"
backup: true
with_fileglob: "{{ nginx_http_upload_src }}"
notify: Reload NGINX
when: nginx_http_upload_enable
tags: update_conf
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ http {
autoindex on;
{% endif %}
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/conf.d/static/*.conf;
}
{% endif %}

Expand Down

0 comments on commit ed149a2

Please sign in to comment.