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"