Ajout de Webdav extension à NginX
This commit is contained in:
@@ -6,6 +6,8 @@ user www-data;
|
||||
worker_processes 4;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
include /etc/nginx/modules-enabled/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
# multi_accept on;
|
||||
|
@@ -19,8 +19,13 @@ server {
|
||||
server_name nfs.mateu.be;
|
||||
location / {
|
||||
root /var/lib/transmission-daemon/downloads/;
|
||||
# standard
|
||||
autoindex on;
|
||||
allow 10.233.212.64/27;
|
||||
# dav
|
||||
dav_methods off;
|
||||
dav_ext_methods PROPFIND OPTIONS;
|
||||
dav_access all:r;
|
||||
}
|
||||
}
|
||||
|
||||
|
14
roles/webapps/tasks/davext.yml
Normal file
14
roles/webapps/tasks/davext.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- name: install dav-ext
|
||||
package:
|
||||
name: libnginx-mod-http-dav-ext
|
||||
state: present
|
||||
|
||||
- name: activate module
|
||||
file:
|
||||
src: "/usr/share/nginx/modules-available/mod-http-dav-ext.conf"
|
||||
dest: "/etc/nginx/modules-enabled/50-mod-http-dav-ext.conf"
|
||||
force: True
|
||||
follow: False
|
||||
state: link
|
||||
notify:
|
||||
- restart nginx
|
@@ -22,3 +22,6 @@
|
||||
- name: fcgiwrap for mailman
|
||||
include_tasks: fcgiwrap.yml
|
||||
when: inventory_hostname == 'mail.dmz.mateu.be'
|
||||
- name: dav-ext for bt
|
||||
include_tasks: davext.yml
|
||||
when: inventory_hostname == 'bt.dmz.mateu.be'
|
||||
|
@@ -3,4 +3,4 @@
|
||||
name: Matomo reports
|
||||
user: www-data
|
||||
minute: "5"
|
||||
job: "/usr/bin/php /srv/nginx/nintendojo.fr/analyse/console core:archive > /dev/null"
|
||||
job: "/usr/bin/php /srv/http/analyse.nintendojo.fr/console core:archive > /dev/null"
|
||||
|
Reference in New Issue
Block a user