Ajout de Webdav extension à NginX

This commit is contained in:
VC
2019-12-01 11:08:19 +01:00
parent 72cd967a79
commit edcc161642
5 changed files with 25 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;
}
}

View 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

View File

@@ -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'

View File

@@ -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"