diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index da750248f..795751153 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -1,11 +1,12 @@ - name: Put the config file in place - template: - src: '{{ item.src}}' + template: + src: '{{ item.src}}' dest: '{{ item.dest }}' with_items: - { src: "server.conf",dest: "/etc/nginx/" } - { src: "nginx.conf",dest: "/etc/nginx/" } - { src: "usb-lib.conf",dest: "/etc/nginx/conf.d/" } + - { src: "modules.conf",dest: "/etc/nginx/conf.d/" } # - { src: "admin-console.ini",dest: "/etc/uwsgi/apps-enabled/" } # the above should be enough once uwsgi is started # - { src: "uwsgi.unit",dest: "/etc/systemd/system/uwsgi.socket" } @@ -19,7 +20,7 @@ # optional services - name: Install config for Admin Console - template: + template: src: admin-console-nginx.conf # Comment one or the other to revert from nginx back to apache2, if required # src: admin-console-apache.conf diff --git a/roles/nginx/templates/modules.conf b/roles/nginx/templates/modules.conf new file mode 100644 index 000000000..16d3cb641 --- /dev/null +++ b/roles/nginx/templates/modules.conf @@ -0,0 +1,10 @@ + +location /modules/ { + fancyindex on; # Enable fancy indexes. + fancyindex_exact_size off; # Output human-readable file sizes. + fancyindex_ignore index.htmlf rachel-index.php; +# autoindex on; +# autoindex_exact_size off; +# autoindex_format html; +# autoindex_localtime on; +}