From 718b6906c54438d4ba72c0e7b19d338a2b460ed0 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 25 Sep 2023 18:29:06 +0200 Subject: [PATCH] Allow uploading of stl files to dokuwiki --- playbooks/roles/dokuwiki/files/mime.local.conf | 4 ++++ playbooks/roles/dokuwiki/tasks/main.yml | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 playbooks/roles/dokuwiki/files/mime.local.conf diff --git a/playbooks/roles/dokuwiki/files/mime.local.conf b/playbooks/roles/dokuwiki/files/mime.local.conf new file mode 100644 index 0000000..66d6072 --- /dev/null +++ b/playbooks/roles/dokuwiki/files/mime.local.conf @@ -0,0 +1,4 @@ +# See here: https://www.dokuwiki.org/mime + +# Allow stl files. +stl !model/stl diff --git a/playbooks/roles/dokuwiki/tasks/main.yml b/playbooks/roles/dokuwiki/tasks/main.yml index ff5a3d1..664f159 100644 --- a/playbooks/roles/dokuwiki/tasks/main.yml +++ b/playbooks/roles/dokuwiki/tasks/main.yml @@ -33,3 +33,12 @@ owner: "{{ dokuwiki__nginx_user }}" group: "{{ dokuwiki__nginx_user }}" mode: "0755" + +- name: Allow more mime types to be uploaded + become: true + ansible.builtin.copy: + src: mime.local.conf + dest: /var/www/dokuwiki/conf/mime.local.conf + owner: root + group: root + mode: "0644"